From ccb5ba1c626b0cb08fa795086be1958989696420 Mon Sep 17 00:00:00 2001 From: hwspeedy Date: Thu, 11 Apr 2024 00:15:23 +0200 Subject: FIX Skip benchmark reporting in CLI when -s (skip benchmark) --- hardinfo2/util.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/hardinfo2/util.c b/hardinfo2/util.c index 516ddb0c..32c93b49 100644 --- a/hardinfo2/util.c +++ b/hardinfo2/util.c @@ -894,10 +894,12 @@ GSList *modules_load_all(void) int i=0; while(i<4) { - if (module = module_load(filenames[i])) { - modules = g_slist_prepend(modules, module); - } - i++; + if(i==2 && !params.gui_running && params.skip_benchmarks) {//skip benchmark reporting if no gui, report and skip benchmark + }else + if (module = module_load(filenames[i])) { + modules = g_slist_prepend(modules, module); + } + i++; } //modules = modules_check_deps(modules); -- cgit v1.2.3