]> AND Public Git Repository - simgrid.git/blobdiff - src/plugins/link_energy_wifi.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
remove model from Link constructors
[simgrid.git] / src / plugins / link_energy_wifi.cpp
index b924517949602e20d786f3c17466709135a69bf0..2dc82a0ce09b07345252fd39954255dafeb74e07 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2017-2020. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2017-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. */
@@ -20,7 +20,7 @@
 #include <map>
 
 SIMGRID_REGISTER_PLUGIN(link_energy_wifi, "Energy wifi test", &sg_wifi_energy_plugin_init);
-/** @degroup plugin_link_energy_wifi Plugin WiFi energy
+/** @defgroup plugin_link_energy_wifi Plugin WiFi energy
  *
  * This is the WiFi energy plugin, accounting for the dissipated energy of WiFi links.
  */
@@ -152,7 +152,6 @@ void LinkEnergyWifi::update(const simgrid::kernel::resource::NetworkAction&)
   while((var = wifi_link->get_constraint()->get_variable(&elem))) {
     auto* action = static_cast<kernel::resource::NetworkWifiAction*>(var->get_id());
     XBT_DEBUG("cost: %f action value: %f link rate 1: %f link rate 2: %f", action->get_cost(), action->get_variable()->get_value(), wifi_link->get_host_rate(&action->get_src()),wifi_link->get_host_rate(&action->get_dst()));
-    action->get_variable();
 
     if(action->get_variable()->get_value()) {
       auto it = flowTmp.find(action);