|
@@ -7,8 +7,8 @@
|
|
|
|
|
|
// Default 4 epochs
|
|
// Default 4 epochs
|
|
int num_epochs = 4;
|
|
int num_epochs = 4;
|
|
-// Default epoch_duration of 5 seconds
|
|
|
|
-int epoch_duration = 5;
|
|
|
|
|
|
+// Default epoch_wait_time of 5 seconds
|
|
|
|
+int epoch_wait_time = 5;
|
|
// Default of 12 Waksman Networks (3 per private_route for 4 epochs)
|
|
// Default of 12 Waksman Networks (3 per private_route for 4 epochs)
|
|
int num_WN_to_precompute = 12;
|
|
int num_WN_to_precompute = 12;
|
|
// We'll always run the WN precomputation in the foreground
|
|
// We'll always run the WN precomputation in the foreground
|
|
@@ -220,8 +220,8 @@ static void route_clients_test(NetIO &netio)
|
|
{
|
|
{
|
|
|
|
|
|
// Default epoch_interval is 5 sec
|
|
// Default epoch_interval is 5 sec
|
|
- unsigned long epoch_interval = epoch_duration * 1000000;
|
|
|
|
- printf("Epoch duration = %d\n", epoch_duration);
|
|
|
|
|
|
+ unsigned long epoch_interval = epoch_wait_time * 1000000;
|
|
|
|
+ printf("Epoch wait time = %d\n", epoch_wait_time);
|
|
|
|
|
|
struct timeval exp_start;
|
|
struct timeval exp_start;
|
|
gettimeofday(&exp_start, NULL);
|
|
gettimeofday(&exp_start, NULL);
|
|
@@ -375,8 +375,8 @@ void start(NetIO &netio, char **args)
|
|
|
|
|
|
if (*args && !strcmp(*args, "route_clients")) {
|
|
if (*args && !strcmp(*args, "route_clients")) {
|
|
++args;
|
|
++args;
|
|
- printf("num_epochs = %d, epoch_duration = %d, num_WN_to_precompute = %d\n",
|
|
|
|
- num_epochs, epoch_duration, num_WN_to_precompute);
|
|
|
|
|
|
+ printf("num_epochs = %d, epoch_wait_time = %d, num_WN_to_precompute = %d\n",
|
|
|
|
+ num_epochs, epoch_wait_time, num_WN_to_precompute);
|
|
route_clients_test(netio);
|
|
route_clients_test(netio);
|
|
return;
|
|
return;
|
|
}
|
|
}
|