aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorhwspeedy <ns@bigbear.dk>2024-05-17 01:34:46 +0200
committerhwspeedy <ns@bigbear.dk>2024-05-17 01:34:46 +0200
commit6f57d6b4f24740789984c2adae0e6eb64ec0f005 (patch)
treebd87d8ef506c5668076c35c62aa107563f2c1d38 /modules
parent3ec3cec92ac40e07a209ad505679664ff9737641 (diff)
FIX When benchmark did not complete, shows too many records CLI
Diffstat (limited to 'modules')
-rw-r--r--modules/benchmark.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/benchmark.c b/modules/benchmark.c
index 8e0b51fb..79662c06 100644
--- a/modules/benchmark.c
+++ b/modules/benchmark.c
@@ -494,7 +494,7 @@ static struct bench_window get_bench_window(GSList *result_list,
}
} else {
window.min = 0;
- window.max = len;
+ if(params.max_bench_results==0) window.max = 0; else window.max=size;
}
//DEBUG("...len: %d, loc: %d, win_size: %d, win: [%d..%d]\n", len, loc, size, window.min, window.max - 1);