From: Jens Axboe Date: Mon, 7 Dec 2015 17:40:18 +0000 (-0700) Subject: t/genzip: cast division to double X-Git-Tag: fio-2.2.13~44 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=18ae9b09c9c133c39dae97a4c1e93d7479ab0335 t/genzip: cast division to double Signed-off-by: Jens Axboe --- diff --git a/t/genzipf.c b/t/genzipf.c index ff0729e5..d8253c3c 100644 --- a/t/genzipf.c +++ b/t/genzipf.c @@ -227,7 +227,7 @@ static void output_normal(struct node *nodes, unsigned long nnodes, if (percentage) { if (total_vals >= blocks) { - double cs = i * block_size / (1024 * 1024); + double cs = (double) i * block_size / (1024.0 * 1024.0); char p = 'M'; if (cs > 1024.0) {