diff options
author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2009-08-10 15:30:28 -0300 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2009-08-10 15:30:28 -0300 |
commit | ca001f02a0a73004e3fecf8e5d4ab19fab101404 (patch) | |
tree | 3d25c0855f9fd83f44a4da385e44aa221ffc270d /hardinfo2 | |
parent | 245eb25ee3ecd5ea175865731d796f942a280831 (diff) |
Cleanups.
Diffstat (limited to 'hardinfo2')
-rw-r--r-- | hardinfo2/benchmark.c | 3 | ||||
-rw-r--r-- | hardinfo2/fbench.c | 4 | ||||
-rw-r--r-- | hardinfo2/hardinfo.c | 2 |
3 files changed, 6 insertions, 3 deletions
diff --git a/hardinfo2/benchmark.c b/hardinfo2/benchmark.c index 5fe0c6dc..4de2b65f 100644 --- a/hardinfo2/benchmark.c +++ b/hardinfo2/benchmark.c @@ -372,6 +372,9 @@ const gchar *hi_note_func(gint entry) switch (entry) { case BENCHMARK_CRYPTOHASH: return "Results in MiB/second. Higher is better."; + + case BENCHMARK_GUI: + return "Results in HIMarks. Higher is better."; case BENCHMARK_FFT: case BENCHMARK_RAYTRACE: diff --git a/hardinfo2/fbench.c b/hardinfo2/fbench.c index 20f01a35..df1b8e19 100644 --- a/hardinfo2/fbench.c +++ b/hardinfo2/fbench.c @@ -271,7 +271,7 @@ static double od_sa[2][2]; /*static char outarr[8][80];*//* Computed output of program goes here */ -int itercount; /* The iteration counter for the main loop +static int itercount; /* The iteration counter for the main loop in the program is made global so that the compiler should not be allowed to optimise out the loop over the ray @@ -280,7 +280,7 @@ int itercount; /* The iteration counter for the main loop #ifndef ITERATIONS #define ITERATIONS 1000 #endif -int niter = ITERATIONS; /* Iteration counter */ +static int niter = ITERATIONS; /* Iteration counter */ #if 0 static char *refarr[] = { /* Reference results. These happen to diff --git a/hardinfo2/hardinfo.c b/hardinfo2/hardinfo.c index ef41a32e..0af7bc8e 100644 --- a/hardinfo2/hardinfo.c +++ b/hardinfo2/hardinfo.c @@ -119,7 +119,7 @@ int main(int argc, char **argv) g_type_init(); xmlrpc_server_init(); - xmlrpc_server_start(); + xmlrpc_server_start(NULL); } else if (params.run_benchmark) { gchar *result; |