-/* 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. */
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()
/** @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);