From a0ea8d7bf5bc880877ca1b8de8dfc60c6b508e4c Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 27 Nov 2019 19:17:13 +0100 Subject: allow scale factors < 1 --- src/benchmark.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/benchmark.py b/src/benchmark.py index fc42763..8abfbc4 100644 --- a/src/benchmark.py +++ b/src/benchmark.py @@ -63,7 +63,7 @@ class Benchmark: max_threads = multiprocessing.cpu_count() * factor if steps > max_threads - min_threads + 1: - return list(range(min_threads, max_threads + 1)) + return list(range(min_threads, int(max_threads) + 1)) nthreads = [] divider = 2 -- cgit v1.2.3