-
- /* set the remains to 0 due to precision problems when updating the remaining amount */
- action->setRemains(0);
- }
- if (TRACE_is_enabled()) {
- //defining the last timestamp that we can safely dump to trace file
- //without losing the event ascending order (considering all CPU's)
- double smaller = -1;
- for (Action const& action : *getRunningActionSet()) {
- if (smaller < 0 || action.getLastUpdate() < smaller)
- smaller = action.getLastUpdate();
- }
- if (smaller > 0) {
- TRACE_last_timestamp_to_dump = smaller;
- }