summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBurt P <pburt0@gmail.com>2017-08-15 12:02:06 -0500
committerLeandro A. F. Pereira <leandro@hardinfo.org>2017-08-21 05:47:00 -0700
commitf85e67ca2f75b939d85de2a92be11214f62ea7ef (patch)
tree314406ee81a16e20f80e2232732b45d68d96310b
parent431d86000fb1491ca15eeab6f9bd027c6a75f477 (diff)
Don't include benchmark result that was canceled
Signed-off-by: Burt P <pburt0@gmail.com>
-rw-r--r--modules/benchmark.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/benchmark.c b/modules/benchmark.c
index 45f74ecd..2159fffb 100644
--- a/modules/benchmark.c
+++ b/modules/benchmark.c
@@ -231,7 +231,7 @@ static gchar *__benchmark_include_results(gdouble result,
moreinfo_del_with_prefix("BENCH");
- if (result != 0.0) {
+ if (result > 0.0) {
temp = module_call_method("devices::getProcessorCount");
n_threads = temp ? atoi(temp) : 1;
g_free(temp); temp = NULL;