aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/arch/common/md5.h
diff options
context:
space:
mode:
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");
}