aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-11-27 19:17:13 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-11-27 19:17:13 +0100
commita0ea8d7bf5bc880877ca1b8de8dfc60c6b508e4c (patch)
treeae2f7e7465cad471a780d888e17889ea79b16e42
parenta3b7fd5006358d456b88bad2324bb99edbdaef40 (diff)
downloadallocbench-a0ea8d7bf5bc880877ca1b8de8dfc60c6b508e4c.tar.gz
allocbench-a0ea8d7bf5bc880877ca1b8de8dfc60c6b508e4c.zip
allow scale factors < 1
-rw-r--r--src/benchmark.py2
1 files changed, 1 insertions, 1 deletions
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