aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorhwspeedy <ns@bigbear.dk>2024-03-06 08:39:27 +0100
committerhwspeedy <ns@bigbear.dk>2024-03-06 08:40:25 +0100
commit1ea9d8e74a2b6131cddd1d56d0fb8f16250e613f (patch)
treefac870364c9b9cbf833712c4466b3b030567fc8e /modules
parentfd6d6d3d489d9299b6b3e045e71f74e307f00ac3 (diff)
FIX hardinfo lib-loading cleanup, params clean up
Diffstat (limited to 'modules')
-rw-r--r--modules/benchmark.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/modules/benchmark.c b/modules/benchmark.c
index 18156e01..511c984e 100644
--- a/modules/benchmark.c
+++ b/modules/benchmark.c
@@ -253,7 +253,7 @@ bench_value benchmark_parallel_for(gint n_threads,
{
gchar *temp;
int cpu_procs, cpu_cores, cpu_threads, cpu_nodes;
- guint iter_per_thread, iter, thread_number = 0;
+ guint iter_per_thread=1, iter, thread_number = 0;
GSList *threads = NULL, *t;
GTimer *timer;
@@ -603,7 +603,6 @@ do_benchmark_handler(GIOChannel *source, GIOCondition condition, gpointer data)
GIOStatus status;
gchar *result;
bench_value r = EMPTY_BENCH_VALUE;
-
status = g_io_channel_read_line(source, &result, NULL, NULL, NULL);
if (status != G_IO_STATUS_NORMAL) {
DEBUG("error while reading benchmark result");
@@ -633,9 +632,7 @@ static void do_benchmark(void (*benchmark_function)(void), int entry)
return;
if (params.gui_running) {
- gchar *argv[] = {params.argv0, "-b", entries[entry].name,
- "-m", "benchmark.so", "-a",
- NULL};
+ gchar *argv[] = {params.argv0, "-b",entries[entry].name,NULL};
GPid bench_pid;
gint bench_stdout;
GtkWidget *bench_dialog;