From 116ed5b83777f8683a358b14a498397d19ccc647 Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Mon, 28 Dec 2009 15:56:38 -0200 Subject: When sending benchmark results to the web service, make sure they were not cancelled (and run them if they were). --- hardinfo2/benchmark.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hardinfo2/benchmark.c b/hardinfo2/benchmark.c index 6fef2507..bdd331d4 100644 --- a/hardinfo2/benchmark.c +++ b/hardinfo2/benchmark.c @@ -573,7 +573,12 @@ static gchar *get_benchmark_results() machineram, i); for (; i >= 0; i--) { if ((scan_callback = entries[i].scan_callback)) { - scan_callback(FALSE); + if (bench_results[i] < 0.0) { + /* benchmark was cancelled */ + scan_callback(TRUE); + } else { + scan_callback(FALSE); + } result = h_strdup_cprintf("[bench%d]\n" "name=%s\n" -- cgit v1.2.3