summaryrefslogtreecommitdiffstats
path: root/programs/bench.c
diff options
context:
space:
mode:
authorJennifer Liu <jenniferliu620@fb.com>2018-06-27 00:31:15 (GMT)
committerJennifer Liu <jenniferliu620@fb.com>2018-06-27 00:31:15 (GMT)
commit9ee5183d9bdfd2f39e8ae2e2a4efff25e61c226d (patch)
tree59ec2b0211f3a037c81703e6ad22d1d6d307813d /programs/bench.c
parentfd1d59f7ba5ed24d973b7569511b7162978d3e46 (diff)
downloadlz4-9ee5183d9bdfd2f39e8ae2e2a4efff25e61c226d.zip
lz4-9ee5183d9bdfd2f39e8ae2e2a4efff25e61c226d.tar.gz
lz4-9ee5183d9bdfd2f39e8ae2e2a4efff25e61c226d.tar.bz2
Fixed code based on comments from pull request
Diffstat (limited to 'programs/bench.c')
-rw-r--r--programs/bench.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/programs/bench.c b/programs/bench.c
index 1ab1b92..770191c 100644
--- a/programs/bench.c
+++ b/programs/bench.c
@@ -407,6 +407,8 @@ static void BMK_benchCLevel(void* srcBuffer, size_t benchedSize,
if (g_displayLevel == 1 && !g_additionalParam)
DISPLAY("bench %s %s: input %u bytes, %u seconds, %u KB blocks\n", LZ4_VERSION_STRING, LZ4_GIT_COMMIT_STRING, (U32)benchedSize, g_nbSeconds, (U32)(g_blockSize>>10));
+ if (cLevelLast < cLevel) cLevelLast = cLevel;
+
for (l=cLevel; l <= cLevelLast; l++) {
BMK_benchMem(srcBuffer, benchedSize,
displayName, l,