summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElias Summermatter <elias.summermatter@seccom.ch>2021-04-03 22:13:26 +0200
committerElias Summermatter <elias.summermatter@seccom.ch>2021-04-03 22:13:26 +0200
commit57075154d229453f6cfa267466d7f46404d817c8 (patch)
tree7fdb0b2547fb164f08641a5d6faef73b75ad4316
parent7af07d8f4eda46d4104b913450500ebc58333bc0 (diff)
Fixed bug in perfomance forking
-rw-r--r--src/setu/perf_setu_api.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/setu/perf_setu_api.c b/src/setu/perf_setu_api.c
index 2554bad80..f2b179817 100644
--- a/src/setu/perf_setu_api.c
+++ b/src/setu/perf_setu_api.c
@@ -425,14 +425,13 @@ static void run_petf_thread(int total_runs) {
//Father code (before child processes start)
for (int processed = 0; processed < total_runs;) {
for (int id = 0; id < core_count; id++) {
-
if(processed >= total_runs) break;
if ((child_pid = fork()) == 0) {
- perf_thread();
+ //perf_thread();
exit(0);
}
- processed=+1;
+ processed += 1;
}
while ((wpid = wait(&status)) > 0);
}
@@ -470,7 +469,7 @@ static void execute_perf() {
GNUNET_ERROR_TYPE_ERROR,
_("Failed to write subsystem default identifier map to `%s'.\n"),
setu_cfg);
- run_petf_thread(100);
+ run_petf_thread(1000);
}
}
return 0;