Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
CPU factors: dynamic factors for CPU
[simgrid.git] / examples / cpp / exec-cpu-nonlinear / s4u-exec-cpu-nonlinear.cpp
index 8c5280d..9e980cd 100644 (file)
@@ -11,7 +11,7 @@
 
 namespace sg4 = simgrid::s4u;
 
-XBT_LOG_NEW_DEFAULT_CATEGORY(s4u_network_nonlinear, "Messages specific for this s4u example");
+XBT_LOG_NEW_DEFAULT_CATEGORY(s4u_test, "Messages specific for this s4u example");
 
 /*************************************************************************************************/
 static void runner()
@@ -36,7 +36,7 @@ static void runner()
 /** @brief Non-linear resource sharing for CPU */
 static double cpu_nonlinear(const sg4::Host* host, double capacity, int n)
 {
-  /* emulates a degradation in link according to the number of flows
+  /* emulates a degradation in CPU according to the number of tasks
    * totally unrealistic but for learning purposes */
   capacity = n > 1 ? capacity / 2 : capacity;
   XBT_INFO("Host %s, %d concurrent tasks, new capacity %lf", host->get_cname(), n, capacity);