aboutsummaryrefslogtreecommitdiff
path: root/benchmark.c
diff options
context:
space:
mode:
authorAgney Lopes Roth Ferraz <agney@debian.org>2006-06-21 22:18:24 -0300
committerSimon Quigley <tsimonq2@ubuntu.com>2017-06-19 14:38:36 -0500
commit078e9c700feccfcf1318b7bde49d6e464bc2ac8c (patch)
tree4d24c99643f10e4b8b75bebaaec5d48294b3b112 /benchmark.c
parent18820242e374421ebd6d504a20d11f310b2ac023 (diff)
parent720f5023a8f68aaaa54cb6b7bf46efee23b5b4c3 (diff)
Import Debian changes 0.4.1-1
hardinfo (0.4.1-1) unstable; urgency=low * New upstream release.
Diffstat (limited to 'benchmark.c')
-rw-r--r--benchmark.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/benchmark.c b/benchmark.c
index f4cb904c..d66d0b8c 100644
--- a/benchmark.c
+++ b/benchmark.c
@@ -20,6 +20,7 @@
#include <iconcache.h>
#include <shell.h>
#include <config.h>
+#include <binreloc.h>
enum {
BENCHMARK_ZLIB,
@@ -41,11 +42,13 @@ static gchar *
benchmark_include_results(gchar *results, const gchar *benchmark)
{
GKeyFile *conf;
- gchar **machines;
+ gchar **machines, *bconf_path;
int i;
conf = g_key_file_new();
- g_key_file_load_from_file(conf, PREFIX "benchmark.conf", 0, NULL);
+ bconf_path = g_strdup_printf("%s/hardinfo/benchmark.conf",
+ gbr_find_data_dir(PREFIX));
+ g_key_file_load_from_file(conf, bconf_path, 0, NULL);
machines = g_key_file_get_keys(conf, benchmark, NULL, NULL);
for (i = 0; machines && machines[i]; i++) {
@@ -56,6 +59,7 @@ benchmark_include_results(gchar *results, const gchar *benchmark)
g_strfreev(machines);
g_key_file_free(conf);
+ g_free(bconf_path);
return g_strconcat(results, "[$ShellParam$]\n"
"Zebra=1\n", NULL);