diff options
author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2006-05-20 14:41:28 +0000 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2006-05-20 14:41:28 +0000 |
commit | 7b3c726991f0f060ca18c576fc7816b930435240 (patch) | |
tree | 1b6e5c7396fd89cd81baa018af6080c5349e1c6b /hardinfo2/benchmark.c | |
parent | cbd8b0d401add58a06d82c7a5d7fb22b53d80714 (diff) |
- Add binreloc support.
- Add users information.
- Add ppc64 and mips64 support.
- Fix loadgraph autoscaling (should be usable now! :)
- Misc cosmetic changes.
- Misc wording changes.
Diffstat (limited to 'hardinfo2/benchmark.c')
-rw-r--r-- | hardinfo2/benchmark.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/hardinfo2/benchmark.c b/hardinfo2/benchmark.c index f4cb904c..d66d0b8c 100644 --- a/hardinfo2/benchmark.c +++ b/hardinfo2/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); |