summaryrefslogtreecommitdiffstats
path: root/programs/bench.c
diff options
context:
space:
mode:
authorYann Collet <yann.collet.73@gmail.com>2016-06-29 12:56:50 (GMT)
committerYann Collet <yann.collet.73@gmail.com>2016-06-29 12:56:50 (GMT)
commita5508b1ad2260fc4cfb784da3ed4867933177c0d (patch)
tree4f2adbd99a35d3c986ac8680d66cf79412b92273 /programs/bench.c
parente27e7316dd94ed429bfe764408353cc2d958ad71 (diff)
downloadlz4-a5508b1ad2260fc4cfb784da3ed4867933177c0d.zip
lz4-a5508b1ad2260fc4cfb784da3ed4867933177c0d.tar.gz
lz4-a5508b1ad2260fc4cfb784da3ed4867933177c0d.tar.bz2
fixed display result issue when benchmarking multiple files
Diffstat (limited to 'programs/bench.c')
-rw-r--r--programs/bench.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/programs/bench.c b/programs/bench.c
index 52b70fe..a2036c3 100644
--- a/programs/bench.c
+++ b/programs/bench.c
@@ -373,7 +373,9 @@ int BMK_benchFiles(const char** fileNamesTable, int nbFiles, int cLevel)
}
if (nbFiles > 1)
- DISPLAY("%-16.16s :%10llu ->%10llu (%5.2f%%), %6.1f MB/s , %6.1f MB/s\n", " TOTAL", (long long unsigned)totals, (long long unsigned int)totalz, (double)totalz/(double)totals*100., (double)totals/totalc/1000., (double)totals/totald/1000.);
+ DISPLAY("%-16.16s :%10llu ->%10llu (%5.2f%%), %6.1f MB/s , %6.1f MB/s\n", " TOTAL",
+ (long long unsigned)totals, (long long unsigned int)totalz, (double)totalz/(double)totals*100.,
+ (double)totals/(totalc/CLOCKS_PER_SEC)/1000000, (double)totals/(totald/CLOCKS_PER_SEC)/1000000);
if (BMK_pause) { DISPLAY("\npress enter...\n"); (void)getchar(); }