Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
NO_MAX_DURATION is a double.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 3 May 2021 20:09:40 +0000 (22:09 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 3 May 2021 20:09:40 +0000 (22:09 +0200)
include/simgrid/kernel/resource/Action.hpp
src/surf/cpu_ti.cpp

index b6dfc79..fb24935 100644 (file)
@@ -14,7 +14,7 @@
 #include <boost/optional.hpp>
 #include <string>
 
-static constexpr int NO_MAX_DURATION = -1.0;
+static constexpr double NO_MAX_DURATION = -1.0;
 
 namespace simgrid {
 namespace kernel {
index b51fe9c..a24b853 100644 (file)
@@ -411,7 +411,7 @@ void CpuTi::update_actions_finish_time(double now)
   }
 
   for (CpuTiAction& action : action_set_) {
-    double min_finish = -1;
+    double min_finish = NO_MAX_DURATION;
     /* action not running, skip it */
     if (action.get_state_set() != get_model()->get_started_action_set())
       continue;