aboutsummaryrefslogtreecommitdiff
path: root/modules/benchmark.c
diff options
context:
space:
mode:
authorLucas de Castro Borges <lucas@gnuabordo.com.br>2024-04-22 19:04:44 -0300
committerLucas de Castro Borges <lucas@gnuabordo.com.br>2024-04-22 19:04:44 -0300
commit92787ae0c9bb15c7841d10654ef7a2e595664d99 (patch)
tree15450b2b4454094fc8571ae4932310a229e7519d /modules/benchmark.c
parent522813da585389c158c6a84e688bc9f53daea38d (diff)
New upstream version 2.0.14preupstream/2.0.14pre
Diffstat (limited to 'modules/benchmark.c')
-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;