aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--allocbench/benchmark.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/allocbench/benchmark.py b/allocbench/benchmark.py
index f02acd2..a630cf5 100644
--- a/allocbench/benchmark.py
+++ b/allocbench/benchmark.py
@@ -132,10 +132,10 @@ class Benchmark:
for line in status_content.splitlines():
key, value = line.split(':')
- value = value.replace("kB", "")
- value = value.strip()
if key in keys:
+ value = value.replace("kB", "")
+ value = value.strip()
result[f"{key_prefix}{key}"] = value
@staticmethod
@@ -151,7 +151,10 @@ class Benchmark:
result[f"{server_name}_status"] = server_status
Benchmark.save_values_from_proc_status(
- result, keys, status_content=server_status)
+ result,
+ keys,
+ status_content=server_status,
+ key_prefix=f"{server_name}_")
@staticmethod
def parse_and_save_perf_output(result, output, alloc_name, perm):