aboutsummaryrefslogtreecommitdiff
path: root/src/mysql.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mysql.py')
-rw-r--r--src/mysql.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mysql.py b/src/mysql.py
index 96904b6..d3eb528 100644
--- a/src/mysql.py
+++ b/src/mysql.py
@@ -1,6 +1,5 @@
import copy
import matplotlib.pyplot as plt
-import multiprocessing
import numpy as np
import os
import re
@@ -36,7 +35,7 @@ class Benchmark_MYSQL(Benchmark):
if "hoard" in self.allocators:
del(self.allocators["hoard"])
- self.args = {"nthreads": range(1, multiprocessing.cpu_count() + 1)}
+ self.args = {"nthreads": Benchmark.scale_threads_for_cpus(1)}
self.cmd = cmd
self.measure_cmd = ""