From 8ec86fc9b4b538873e896d876972dbd89781bbf7 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 3 Jun 2020 14:03:29 +0200 Subject: [benchmark.y] fix extraction of server VmHWM --- allocbench/benchmark.py | 9 ++++++--- 1 file 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): -- cgit v1.2.3