X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/38f246c4c46920a78ea0af8233449f402c178f04..73e97710413bba3ee2ae8baab0537fbd78811016:/src/surf/cpu_cas01.cpp diff --git a/src/surf/cpu_cas01.cpp b/src/surf/cpu_cas01.cpp index 47b539702a..a17b5dfbb6 100644 --- a/src/surf/cpu_cas01.cpp +++ b/src/surf/cpu_cas01.cpp @@ -3,8 +3,8 @@ /* 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. */ -#include "simgrid/kernel/routing/NetZoneImpl.hpp" -#include "simgrid/s4u/Engine.hpp" +#include +#include #include "simgrid/sg_config.hpp" #include "src/kernel/EngineImpl.hpp" @@ -167,7 +167,7 @@ CpuAction* CpuCas01::sleep(double duration) if (duration > 0) duration = std::max(duration, sg_surf_precision); - XBT_IN("(%s,%g)", get_cname(), duration); + XBT_IN("(%s, %g)", get_cname(), duration); auto* action = new CpuCas01Action(get_model(), 1.0, not is_on(), speed_.scale * speed_.peak, get_constraint(), 1); // FIXME: sleep variables should not consume 1.0 in System::expand() @@ -208,11 +208,6 @@ CpuCas01Action::CpuCas01Action(Model* model, double cost, bool failed, double sp model->get_maxmin_system()->expand(constraint, get_variable(), 1.0); } -int CpuCas01Action::requested_core() const -{ - return requested_core_; -} - } // namespace resource } // namespace kernel } // namespace simgrid