diff --git a/hwbench/environment/turbostat.py b/hwbench/environment/turbostat.py index 52e1b30..e2504c8 100644 --- a/hwbench/environment/turbostat.py +++ b/hwbench/environment/turbostat.py @@ -69,7 +69,7 @@ def check_version(self): english_env = os.environ.copy() english_env["LC_ALL"] = "C" self.process = subprocess.Popen( - ["turbostat", "-v"], + ["turbostat", "--version"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, env=english_env, @@ -148,14 +148,14 @@ def run(self, interval: float = 1, wait=False): "-c", f"{self.hardware.get_cpu().get_logical_cores_count()-1}", "turbostat", - "-c", + "--cpu", "core", - "-q", + "--quiet", "--interval", str(interval), - "-n", + "--num_iterations", "1", - "-s", + "--show", ] sensors = "" for sensor in CPUSTATS: