- ActionList *running_actions = getRunningActionSet();
- double min = this->shareResourcesMaxMin(running_actions,
- maxminSystem_,
- bottleneck_solve);
-
- for(ActionList::iterator it(running_actions->begin()), itend(running_actions->end())
- ; it != itend ; ++it) {
- action = static_cast<L07Action*>(&*it);
- if (action->m_latency > 0) {
- if (min < 0) {
- min = action->m_latency;
- XBT_DEBUG("Updating min (value) with %p (start %f): %f", action,
- action->getStartTime(), min);
- } else if (action->m_latency < min) {
- min = action->m_latency;
- XBT_DEBUG("Updating min (latency) with %p (start %f): %f", action,
- action->getStartTime(), min);
- }
+double HostL07Model::nextOccuringEvent(double now)
+{
+ double min = HostModel::nextOccuringEventFull(now);
+ ActionList::iterator it(getRunningActionSet()->begin());
+ ActionList::iterator itend(getRunningActionSet()->end());
+ for (; it != itend; ++it) {
+ L07Action *action = static_cast<L07Action*>(&*it);
+ if (action->latency_ > 0 && (min < 0 || action->latency_ < min)) {
+ min = action->latency_;
+ XBT_DEBUG("Updating min with %p (start %f): %f", action, action->getStartTime(), min);