diff options
author | Agney Lopes Roth Ferraz <agney@debian.org> | 2006-06-21 22:18:24 -0300 |
---|---|---|
committer | Simon Quigley <tsimonq2@ubuntu.com> | 2017-06-19 14:38:36 -0500 |
commit | 078e9c700feccfcf1318b7bde49d6e464bc2ac8c (patch) | |
tree | 4d24c99643f10e4b8b75bebaaec5d48294b3b112 /arch/common/blowfish.h | |
parent | 18820242e374421ebd6d504a20d11f310b2ac023 (diff) | |
parent | 720f5023a8f68aaaa54cb6b7bf46efee23b5b4c3 (diff) |
Import Debian changes 0.4.1-1
hardinfo (0.4.1-1) unstable; urgency=low
* New upstream release.
Diffstat (limited to 'arch/common/blowfish.h')
-rw-r--r-- | arch/common/blowfish.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/arch/common/blowfish.h b/arch/common/blowfish.h index 7333d069..ad4bdb92 100644 --- a/arch/common/blowfish.h +++ b/arch/common/blowfish.h @@ -34,8 +34,13 @@ benchmark_fish(void) L = 0xBEBACAFE; R = 0xDEADBEEF; - 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"); } @@ -57,6 +62,7 @@ benchmark_fish(void) } g_timer_destroy(timer); + g_free(bdata_path); gchar *retval = g_strdup_printf("[Results <i>(in seconds; lower is better)</i>]\n" "<b>This Machine</b>=<b>%.2f</b>\n", elapsed); |