diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2019-11-27 19:17:13 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2019-11-27 19:17:13 +0100 |
| commit | a0ea8d7bf5bc880877ca1b8de8dfc60c6b508e4c (patch) | |
| tree | ae2f7e7465cad471a780d888e17889ea79b16e42 | |
| parent | a3b7fd5006358d456b88bad2324bb99edbdaef40 (diff) | |
| download | allocbench-a0ea8d7bf5bc880877ca1b8de8dfc60c6b508e4c.tar.gz allocbench-a0ea8d7bf5bc880877ca1b8de8dfc60c6b508e4c.zip | |
allow scale factors < 1
| -rw-r--r-- | src/benchmark.py | 2 |
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 |
