aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBurt P <pburt0@gmail.com>2018-03-18 23:23:39 -0500
committerLeandro A. F. Pereira <leandro@hardinfo.org>2018-04-24 07:44:12 -0700
commitf4e3b832e11783d88fd4da9446dae3f5b0803acd (patch)
treea7b69b5f9476981f8aa8c5f4f28caa127f1399e9 /modules
parentea8ce7dabdf2e3a27e1d6edb84752dff5700a849 (diff)
hardinfo: add cli option to skip benchmarks
If you just need the hardware report, this makes it so much faster. Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'modules')
-rw-r--r--modules/benchmark.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/benchmark.c b/modules/benchmark.c
index 362755e8..5f1dc0a5 100644
--- a/modules/benchmark.c
+++ b/modules/benchmark.c
@@ -441,6 +441,8 @@ static void do_benchmark(void (*benchmark_function)(void), int entry)
{
int old_priority = 0;
+ if (params.skip_benchmarks) return;
+
if (params.gui_running && !sending_benchmark_results) {
gchar *argv[] = { params.argv0, "-b", entries[entry].name,
"-m", "benchmark.so", "-a", NULL };