Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Let the user set the latency with the constant network model
authorChristophe Thiéry <christopho128@gmail.com>
Thu, 19 May 2011 13:49:14 +0000 (15:49 +0200)
committerChristophe Thiéry <christopho128@gmail.com>
Thu, 19 May 2011 13:49:14 +0000 (15:49 +0200)
src/surf/network_constant.c

index 066cd01..7b811c4 100644 (file)
@@ -125,7 +125,7 @@ static surf_action_t netcste_communicate(const char *src_name,
 
   action->suspended = 0;
 
 
   action->suspended = 0;
 
-  action->latency = 1;          //random_generate(random_latency);
+  action->latency = sg_latency_factor;          //random_generate(random_latency);
   action->lat_init = action->latency;
 
   if (action->latency <= 0.0) {
   action->lat_init = action->latency;
 
   if (action->latency <= 0.0) {