Browse Source

Closing server application after 50 epochs

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

+ 2 - 1
App/start.cpp

@@ -163,7 +163,7 @@ static void route_clients_test(NetIO &netio)
     }
 
     // Run epoch
-    for (int i=1; i<10; ++i) {
+    for (int i=1; i<50; ++i) {
         struct timespec tp;
         clock_gettime(CLOCK_REALTIME_COARSE, &tp);
         unsigned long start = tp.tv_sec * 1000000 + tp.tv_nsec/1000;
@@ -182,6 +182,7 @@ static void route_clients_test(NetIO &netio)
         }
     }
     netio.close();
+    exit(0);
 }