fix difference between tread and proces when running on 1 core
authorLaurent MAZET <laurent.mazet@thalesgroup.com>
Tue, 4 Nov 2025 17:07:47 +0000 (18:07 +0100)
committerLaurent MAZET <laurent.mazet@thalesgroup.com>
Tue, 4 Nov 2025 17:07:47 +0000 (18:07 +0100)
generic.c

index c45cdc03624d85cd1b512fda9a4e808c1c733da9..3f4f6a58032d84cf67839ac317bcde00d07ba86a 100644 (file)
--- a/generic.c
+++ b/generic.c
@@ -130,9 +130,9 @@ void *ping (__attribute__((unused)) void *arg)
             /* can't append */
             break;
         }
-    }
 
-    usleep (TIMER);
+       usleep (TIMER / 10);
+    }
 
     /* close communication between process */