Skip to content

Commit

Permalink
fix: norm correction regex
Browse files Browse the repository at this point in the history
  • Loading branch information
aldbr committed Feb 28, 2022
1 parent 74025ba commit f7fd3e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/db12/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def get_norm_correction(norm_computed):
try:
with open("/proc/cpuinfo", "r") as file_object:
content = file_object.read()
cpu_brand_name = re.findall("model name\t: ([a-zA-Z]*) ", content)[0]
cpu_brand_name = re.findall("model name\t: ([a-zA-Z]*)", content)[0]
except (IOError, IndexError):
logging.warning(
"Cannot correct the score, return the raw norm: cannot access CPU information"
Expand Down

0 comments on commit f7fd3e9

Please sign in to comment.