From f7fd3e9baf90ba5458e9bddf35c386f3f7cdfbd4 Mon Sep 17 00:00:00 2001 From: aldbr Date: Mon, 28 Feb 2022 16:07:16 +0100 Subject: [PATCH] fix: norm correction regex --- src/db12/benchmark.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db12/benchmark.py b/src/db12/benchmark.py index c6ead83..30d44d5 100644 --- a/src/db12/benchmark.py +++ b/src/db12/benchmark.py @@ -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"