From f4e3b832e11783d88fd4da9446dae3f5b0803acd Mon Sep 17 00:00:00 2001 From: Burt P Date: Sun, 18 Mar 2018 23:23:39 -0500 Subject: 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 --- modules/benchmark.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules') 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 }; -- cgit v1.2.3