summaryrefslogtreecommitdiff
path: root/modules/benchmark.c
diff options
context:
space:
mode:
authorLeandro Pereira <leandro@hardinfo.org>2020-05-09 13:36:59 -0700
committerLeandro Pereira <leandro@hardinfo.org>2020-05-09 13:40:13 -0700
commitd6a97ba11b566c412077c76c29e0281eda7b7359 (patch)
tree2af911e766fa630f13925195b8a9952819f9b5ae /modules/benchmark.c
parent4971f25cdbb1d32f7014d7f484c957f4bb7ba658 (diff)
Remove moreinfo with BENCH prefix right before preparing for shell
Diffstat (limited to 'modules/benchmark.c')
-rw-r--r--modules/benchmark.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/benchmark.c b/modules/benchmark.c
index 166231c5..a2b975bc 100644
--- a/modules/benchmark.c
+++ b/modules/benchmark.c
@@ -550,10 +550,7 @@ static gchar *benchmark_include_results_internal(bench_value this_machine_value,
gchar *path;
gint i;
- moreinfo_del_with_prefix("BENCH");
-
path = find_benchmark_conf();
-
if (path) {
if (g_str_has_suffix(path, ".json"))
result_list = benchmark_include_results_json(
@@ -577,6 +574,8 @@ static gchar *benchmark_include_results_internal(bench_value this_machine_value,
result_list = g_slist_reverse(result_list);
/* prepare for shell */
+ moreinfo_del_with_prefix("BENCH");
+
const struct bench_window window = get_bench_window(result_list, this_machine);
for (i = 0, li = result_list; li; li = g_slist_next(li), i++) {
bench_result *br = li->data;