X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6ce33e125842a4cad0537273a154dbf7e4f1e81c..ccf671a80a47f0489c33fb1dc2a8aadfc28b5b88:/src/surf/network_wifi.cpp diff --git a/src/surf/network_wifi.cpp b/src/surf/network_wifi.cpp index 05cdc7158f..d741ce48e1 100644 --- a/src/surf/network_wifi.cpp +++ b/src/surf/network_wifi.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2019-2020. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2019-2021. 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. */ @@ -7,7 +7,7 @@ #include "simgrid/s4u/Host.hpp" #include "src/surf/surf_interface.hpp" -XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(surf_network); +XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(res_network); namespace simgrid { namespace kernel { @@ -71,7 +71,7 @@ void NetworkWifiLink::refresh_decay_bandwidths(){ int nSTA = get_host_count(); std::vector new_bandwidths; - for (auto bandwidth : bandwidths_){ + for (auto const& bandwidth : bandwidths_) { // Instantiate decay model relatively to the actual bandwidth double max_bw=bandwidth.peak; double min_bw=bandwidth.peak-(wifi_max_rate_-wifi_min_rate_);