From c38d62dba479a8a69703d0fb010ed34ac2ebc685 Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Sat, 20 Jan 2007 01:33:01 +0000 Subject: Better benchmark result handling when using synchronized data. --- hardinfo2/arch/common/blowfish.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'hardinfo2/arch/common/blowfish.h') diff --git a/hardinfo2/arch/common/blowfish.h b/hardinfo2/arch/common/blowfish.h index 07160690..ceec7a96 100644 --- a/hardinfo2/arch/common/blowfish.h +++ b/hardinfo2/arch/common/blowfish.h @@ -18,7 +18,7 @@ #include -gchar * +static void benchmark_fish(void) { BLOWFISH_CTX ctx; @@ -39,8 +39,7 @@ benchmark_fish(void) bdata_path = g_build_filename(params.path_data, "benchmark.data", NULL); if (!g_file_get_contents(bdata_path, &tmpsrc, NULL, NULL)) { g_free(bdata_path); - return g_strdup("[Error]\n" - PREFIX "benchmark.data not found=\n"); + return; } shell_view_set_enabled(FALSE); @@ -63,8 +62,4 @@ benchmark_fish(void) g_free(bdata_path); bench_results[BENCHMARK_BLOWFISH] = elapsed; - - gchar *retval = g_strdup_printf("[Results (in seconds; lower is better)]\n" - "This Machine=%.2f\n", elapsed); - return benchmark_include_results(retval, "CPU Blowfish"); } -- cgit v1.2.3