Browse Source

Setting clients_test to 10 epochs. Adding some extra delay at the start for client connections and Waksman precompute

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

+ 2 - 2
App/start.cpp

@@ -154,7 +154,7 @@ static void route_clients_test(NetIO &netio)
     size_t epoch_interval = epoch_duration * 1000000;
     printf("Epoch duration = %d\n", epoch_duration);
     // Sleep two epoch_interval for clients to connect
-    usleep(2 * epoch_interval);
+    usleep(4 * epoch_interval);
 
     // Precompute some WaksmanNetworks
     const Config &config = netio.config();
@@ -183,7 +183,7 @@ static void route_clients_test(NetIO &netio)
         unsigned long end = tp.tv_sec * 1000000 + tp.tv_nsec/1000;
         unsigned long diff = end - start;
 
-        //printf("client_count = %ld\n", client_count);
+        printf("client_count = %ld\n", client_count);
         printf("Epoch %d time: %lu.%06lu s\n", i, diff/1000000, diff%1000000);
 
         // Sleep for the rest of the epoch interval