Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update copyright lines for 2022.
[simgrid.git] / examples / cpp / exec-cpu-nonlinear / s4u-exec-cpu-nonlinear.cpp
index 8c5280d..56bad89 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2010-2021. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2010-2022. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -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);