Browse Source

Fixing server sleep time between epochs

Sajin Sasy 1 year ago
parent
commit
fe1740b505
1 changed files with 1 additions and 1 deletions
  1. 1 1
      App/start.cpp

+ 1 - 1
App/start.cpp

@@ -173,7 +173,7 @@ static void route_clients_test(NetIO &netio)
         printf("Epoch time: %lu.%06lu s\n", diff/1000000, diff%1000000);
 
         // Sleep for the rest of the epoch interval
-        if (diff < EPOCH_INTERVAL && i!=0) {
+        if (diff < EPOCH_INTERVAL) {
             usleep(EPOCH_INTERVAL - (useconds_t) diff);
         }
     }