Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
when an activity is complete, nothing remains...
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Fri, 20 Jul 2018 12:29:05 +0000 (14:29 +0200)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Fri, 20 Jul 2018 12:29:05 +0000 (14:29 +0200)
src/plugins/dirty_page_tracking.cpp

index df2cc07..ae27922 100644 (file)
@@ -94,8 +94,7 @@ static void on_exec_completion(simgrid::kernel::activity::ExecImplPtr exec)
   /* If we are in the middle of dirty page tracking, we record how much computation has been done until now, and keep
    * the information for the lookup_() function that will called soon. */
   if (vm->get_impl()->extension<simgrid::vm::DirtyPageTrackingExt>()->is_tracking()) {
   /* If we are in the middle of dirty page tracking, we record how much computation has been done until now, and keep
    * the information for the lookup_() function that will called soon. */
   if (vm->get_impl()->extension<simgrid::vm::DirtyPageTrackingExt>()->is_tracking()) {
-    double delta = vm->get_impl()->extension<simgrid::vm::DirtyPageTrackingExt>()->get_stored_remains(exec) -
-                   exec->get_remaining();
+    double delta = vm->get_impl()->extension<simgrid::vm::DirtyPageTrackingExt>()->get_stored_remains(exec);
     vm->get_impl()->extension<simgrid::vm::DirtyPageTrackingExt>()->update_dirty_page_count(delta);
   }
   vm->get_impl()->extension<simgrid::vm::DirtyPageTrackingExt>()->untrack(exec);
     vm->get_impl()->extension<simgrid::vm::DirtyPageTrackingExt>()->update_dirty_page_count(delta);
   }
   vm->get_impl()->extension<simgrid::vm::DirtyPageTrackingExt>()->untrack(exec);