Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Coding style: ! -> 'not'.
[simgrid.git] / teshsuite / models / wifi_usage_decay / wifi_usage_decay.cpp
index 92f2c0d..6525f73 100644 (file)
@@ -78,7 +78,7 @@ void run_ping_test(const char* src, const char* dest, int data_size)
   simgrid::s4u::Actor::create("receiver", simgrid::s4u::Host::by_name(dest),
                               [mailbox]() { mailbox->get<std::string>(); });
   auto* l = (simgrid::kernel::resource::NetworkWifiLink*)simgrid::s4u::Link::by_name("AP1")->get_impl();
-  if (!l->toggle_decay_model())
+  if (not l->toggle_decay_model())
     l->toggle_decay_model();
   l->set_host_rate(simgrid::s4u::Host::by_name("Station 1"), 0);
   l->set_host_rate(simgrid::s4u::Host::by_name("Station 2"), 0);