Skip to content

Commit

Permalink
Fix recording environment info on mac os
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Bechberger committed Aug 14, 2020
1 parent 455f976 commit 4dc46ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion temci/utils/envinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def create() -> 'CpuInfo':
if util.on_apple_os():

def sysctl(key: str) -> str:
return subprocess.check_output("sysctl -n {}".format(key)).strip()
return subprocess.check_output("sysctl -n {}".format(key), shell=True).strip()

return CpuInfo(sysctl("machdep.cpu.brand_string"), int(sysctl("hw.physicalcpu")),
multiprocessing.cpu_count())
Expand Down

0 comments on commit 4dc46ac

Please sign in to comment.