gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] 10/164: Fixed bug in perfomance forking


From: gnunet
Subject: [gnunet] 10/164: Fixed bug in perfomance forking
Date: Fri, 30 Jul 2021 15:31:16 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository gnunet.

commit 617dbf66bb22465d1bf897be77274d09aaa89b5e
Author: Elias Summermatter <elias.summermatter@seccom.ch>
AuthorDate: Sat Apr 3 22:13:26 2021 +0200

    Fixed bug in perfomance forking
---
 src/setu/perf_setu_api.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/setu/perf_setu_api.c b/src/setu/perf_setu_api.c
index 14a96f782..e40170cd3 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;

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]