Add real blockdev_size() for FreeBSD
[fio.git] / stat.c
diff --git a/stat.c b/stat.c
index 6418cf1f6c15ff4cbffbac5d6964399f64e33615..143325aa1879680e2e09c5a18c13964b57661845 100644 (file)
--- a/stat.c
+++ b/stat.c
@@ -635,16 +635,16 @@ void show_run_stats(void)
                max_run[1] = rs->max_run[1];
 
                if (rs->max_run[0])
-                       rs->agg[0] = (rs->io_kb[0] * 1000) / max_run[0];
+                       rs->agg[0] = (rs->io_kb[0] * rs->kb_base) / max_run[0];
                if (rs->max_run[1])
-                       rs->agg[1] = (rs->io_kb[1] * 1000) / max_run[1];
+                       rs->agg[1] = (rs->io_kb[1] * rs->kb_base) / max_run[1];
        }
 
        /*
         * don't overwrite last signal output
         */
        if (!terse_output)
-               printf("\n");
+               log_info("\n");
 
        for (i = 0; i < nr_ts; i++) {
                ts = &threadstats[i];