From 6f57d6b4f24740789984c2adae0e6eb64ec0f005 Mon Sep 17 00:00:00 2001 From: hwspeedy Date: Fri, 17 May 2024 01:34:46 +0200 Subject: FIX When benchmark did not complete, shows too many records CLI --- modules/benchmark.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') 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); -- cgit v1.2.3