aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/arch/common/md5.h
diff options
context:
space:
mode:
authorLeandro A. F. Pereira <leandro@hardinfo.org>2007-01-20 01:33:01 +0000
committerLeandro A. F. Pereira <leandro@hardinfo.org>2007-01-20 01:33:01 +0000
commitc38d62dba479a8a69703d0fb010ed34ac2ebc685 (patch)
tree2b874f1b890be1d73bd09bd332b8607c001703ac /hardinfo2/arch/common/md5.h
parentfa0fa92bd3f1f0bad206b3a835b562839d9d895c (diff)
Better benchmark result handling when using synchronized data.
Diffstat (limited to 'hardinfo2/arch/common/md5.h')
-rw-r--r--hardinfo2/arch/common/md5.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/hardinfo2/arch/common/md5.h b/hardinfo2/arch/common/md5.h
index 601eef94..95d683bd 100644
--- a/hardinfo2/arch/common/md5.h
+++ b/hardinfo2/arch/common/md5.h
@@ -18,7 +18,7 @@
#include <md5.h>
-gchar *
+static void
benchmark_md5(void)
{
struct MD5Context ctx;
@@ -36,8 +36,7 @@ benchmark_md5(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);
@@ -60,9 +59,5 @@ benchmark_md5(void)
g_free(bdata_path);
bench_results[BENCHMARK_MD5] = 312.0 / elapsed;
-
- gchar *retval = g_strdup_printf("[Results]\n"
- "<i>This Machine</i>=%.2f MiB/s\n", 312.0 / elapsed);
- return benchmark_include_results_reverse(retval, "CPU MD5");
}