diff options
author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2007-01-20 01:33:01 +0000 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2007-01-20 01:33:01 +0000 |
commit | c38d62dba479a8a69703d0fb010ed34ac2ebc685 (patch) | |
tree | 2b874f1b890be1d73bd09bd332b8607c001703ac /hardinfo2/arch/common/blowfish.h | |
parent | fa0fa92bd3f1f0bad206b3a835b562839d9d895c (diff) |
Better benchmark result handling when using synchronized data.
Diffstat (limited to 'hardinfo2/arch/common/blowfish.h')
-rw-r--r-- | hardinfo2/arch/common/blowfish.h | 9 |
1 files changed, 2 insertions, 7 deletions
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 <blowfish.h> -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 <i>(in seconds; lower is better)</i>]\n" - "<i>This Machine</i>=%.2f\n", elapsed); - return benchmark_include_results(retval, "CPU Blowfish"); } |