X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=stat.c;h=c8a45dbd4ce05e962659245be13e67e0251adcc6;hb=c89daa4a98e6f3749ffc75b727a77cc061a0a454;hp=c5a68ad5c489cb0baf083220edbd63c4d2bcf591;hpb=f8c48f59773d0a26526472dbee116a4772aec930;p=fio.git diff --git a/stat.c b/stat.c index c5a68ad5..c8a45dbd 100644 --- a/stat.c +++ b/stat.c @@ -135,11 +135,11 @@ static int double_cmp(const void *a, const void *b) return cmp; } -unsigned int calc_clat_percentiles(unsigned int *io_u_plat, unsigned long nr, +unsigned int calc_clat_percentiles(unsigned int *io_u_plat, unsigned long long nr, fio_fp64_t *plist, unsigned long long **output, unsigned long long *maxv, unsigned long long *minv) { - unsigned long sum = 0; + unsigned long long sum = 0; unsigned int len, i, j = 0; unsigned int oval_len = 0; unsigned long long *ovals = NULL; @@ -198,7 +198,7 @@ unsigned int calc_clat_percentiles(unsigned int *io_u_plat, unsigned long nr, /* * Find and display the p-th percentile of clat */ -static void show_clat_percentiles(unsigned int *io_u_plat, unsigned long nr, +static void show_clat_percentiles(unsigned int *io_u_plat, unsigned long long nr, fio_fp64_t *plist, unsigned int precision, bool is_clat, struct buf_output *out) {