summaryrefslogtreecommitdiff
path: root/stat.h
diff options
context:
space:
mode:
authorAndrzej Jakowski <andrzej.jakowski@intel.com>2017-10-12 08:31:06 -0600
committerJens Axboe <axboe@kernel.dk>2017-10-12 08:31:06 -0600
commitd7bb1620dddf26cb99676888236ba16610a1dcc7 (patch)
tree58dd2bb05ffa97727ba27a547841da7174a0d555 /stat.h
parent447b94e10bddab8078f35c423ca1e3c3f0b1be38 (diff)
downloadfio-d7bb1620dddf26cb99676888236ba16610a1dcc7.tar.gz
fio-d7bb1620dddf26cb99676888236ba16610a1dcc7.tar.bz2
Fix more overflows in percentile calculation for Windows
The previous patch caught one place where we could potentially overflow for large number of IOs, this patches up a few more. Signed-off-by: Andrzej Jakowski <andrzej.jakowski@intel.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'stat.h')
-rw-r--r--stat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/stat.h b/stat.h
index 3fda0841..6ddcad25 100644
--- a/stat.h
+++ b/stat.h
@@ -293,7 +293,7 @@ extern void init_thread_stat(struct thread_stat *ts);
extern void init_group_run_stat(struct group_run_stats *gs);
extern void eta_to_str(char *str, unsigned long eta_sec);
extern bool calc_lat(struct io_stat *is, unsigned long long *min, unsigned long long *max, double *mean, double *dev);
-extern unsigned int calc_clat_percentiles(unsigned int *io_u_plat, unsigned long nr, fio_fp64_t *plist, unsigned long long **output, unsigned long long *maxv, unsigned long long *minv);
+extern 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);
extern void stat_calc_lat_n(struct thread_stat *ts, double *io_u_lat);
extern void stat_calc_lat_m(struct thread_stat *ts, double *io_u_lat);
extern void stat_calc_lat_u(struct thread_stat *ts, double *io_u_lat);