From a6db4b3884cf68369e412f3e8b5d5118bf2de441 Mon Sep 17 00:00:00 2001 From: Andreas Egger Date: Mon, 24 Jun 2013 23:46:36 +0200 Subject: [PATCH] small improvement --- src/at/ac/tuwien/lsdc/sched/AbstractScheduler.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/at/ac/tuwien/lsdc/sched/AbstractScheduler.java b/src/at/ac/tuwien/lsdc/sched/AbstractScheduler.java index 1739694..f54d0f0 100644 --- a/src/at/ac/tuwien/lsdc/sched/AbstractScheduler.java +++ b/src/at/ac/tuwien/lsdc/sched/AbstractScheduler.java @@ -230,7 +230,9 @@ public abstract class AbstractScheduler { handleOutsourcedEndEvents(events.get(EventType.endOutsourcedApplication)); if (events.containsKey(EventType.endInsourcedApplication)) handleInsourcedEndEvents(events.get(EventType.endInsourcedApplication)); - handleDelayedApps(); + if(delayedApps.size() > 0) + handleDelayedApps(); + if (events.containsKey(EventType.startOutsourcedApplication)) handleOutsourcedStartEvents(events.get(EventType.startOutsourcedApplication)); if (events.containsKey(EventType.startApplication)) @@ -249,6 +251,7 @@ public abstract class AbstractScheduler { delayedStartEvents.add(evt); totalDelayedApps ++; } + delayedApps.clear(); handleStartEvents(delayedStartEvents); } -- 2.43.0