Skip to content

Commit

Permalink
Merge pull request #7 from aldbr/master
Browse files Browse the repository at this point in the history
[1.0.4] fix: norm correction regex
  • Loading branch information
fstagni committed Feb 28, 2022
2 parents 74025ba + f7fd3e9 commit d56e1b7
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 d56e1b7

Please sign in to comment.