Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
yet another correction for those factors, hope this is the last one ..
authorAugustin Degomme <degomme@idpann.imag.fr>
Thu, 27 Sep 2012 10:47:07 +0000 (12:47 +0200)
committerAugustin Degomme <degomme@idpann.imag.fr>
Thu, 27 Sep 2012 10:47:27 +0000 (12:47 +0200)
src/surf/network.c

index f6b356c..e295c73 100644 (file)
@@ -130,8 +130,9 @@ static double smpi_bandwidth_factor(double size)
     }else
       current=fact.value;
   }
     }else
       current=fact.value;
   }
+  XBT_DEBUG("%lf > %ld return %f", size, fact.factor, current);
 
 
-  return 1.0;
+  return current;
 }
 
 static double smpi_latency_factor(double size)
 }
 
 static double smpi_latency_factor(double size)
@@ -150,8 +151,9 @@ static double smpi_latency_factor(double size)
     }else
       current=fact.value;
   }
     }else
       current=fact.value;
   }
+  XBT_DEBUG("%lf > %ld return %f", size, fact.factor, current);
 
 
-  return 1.0;
+  return current;
 }
 
 /**--------- <copy/paste C code snippet in surf/network.c> -----------*/
 }
 
 /**--------- <copy/paste C code snippet in surf/network.c> -----------*/