Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
finish(done) already sets remains to 0
[simgrid.git] / src / surf / cpu_interface.cpp
index d854732..b3afee5 100644 (file)
@@ -34,9 +34,6 @@ void CpuModel::updateActionsStateLazy(double now, double /*delta*/)
 
     action->finish(kernel::resource::Action::State::done);
     XBT_CDEBUG(surf_kernel, "Action %p finished", action);
-
-    /* set the remains to 0 due to precision problems when updating the remaining amount */
-    action->set_remains(0);
   }
   if (TRACE_is_enabled()) {
     //defining the last timestamp that we can safely dump to trace file
@@ -173,7 +170,7 @@ void Cpu::setSpeedTrace(tmgr_trace_t trace)
  * Action *
  **********/
 
-void CpuAction::updateRemainingLazy(double now)
+void CpuAction::update_remains_lazy(double now)
 {
   xbt_assert(get_state_set() == get_model()->getRunningActionSet(), "You're updating an action that is not running.");
   xbt_assert(get_priority() > 0, "You're updating an action that seems suspended.");