From 7b3c726991f0f060ca18c576fc7816b930435240 Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Sat, 20 May 2006 14:41:28 +0000 Subject: - Add binreloc support. - Add users information. - Add ppc64 and mips64 support. - Fix loadgraph autoscaling (should be usable now! :) - Misc cosmetic changes. - Misc wording changes. --- hardinfo2/arch/common/md5.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'hardinfo2/arch/common/md5.h') diff --git a/hardinfo2/arch/common/md5.h b/hardinfo2/arch/common/md5.h index f61aef0f..256d6c3b 100644 --- a/hardinfo2/arch/common/md5.h +++ b/hardinfo2/arch/common/md5.h @@ -31,8 +31,12 @@ benchmark_md5(void) tmpsrc = src; - if (!g_file_get_contents(PREFIX "benchmark.data", - &tmpsrc, NULL, NULL)) { + gchar *bdata_path; + + bdata_path = g_strdup_printf("%s/hardinfo/benchmark.data", + gbr_find_data_dir(PREFIX)); + 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"); } @@ -54,6 +58,7 @@ benchmark_md5(void) } g_timer_destroy(timer); + g_free(bdata_path); gchar *retval = g_strdup_printf("[Results (in seconds; lower is better)]\n" "This Machine=%.2f\n", elapsed); -- cgit v1.2.3