Skip to content

Commit

Permalink
FIXED: CPU shows UNKNOWN (IDSIA#883)
Browse files Browse the repository at this point in the history
Function get_cpu_info() in Package cpuinfo returns a dict that CPU model is index by "brand_raw" instead of "brand", see L210 in sacred/hostinfo.py .
  • Loading branch information
MonoHue committed Aug 15, 2022
1 parent df6834b commit 3254319
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sacred/host_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,4 +207,4 @@ def _get_cpu_by_proc_cpuinfo():


def _get_cpu_by_pycpuinfo():
return cpuinfo.get_cpu_info().get("brand", "Unknown")
return cpuinfo.get_cpu_info().get("brand_raw", "Unknown")

0 comments on commit 3254319

Please sign in to comment.