From a17eb352781d95c3987120104edbc02640b21e87 Mon Sep 17 00:00:00 2001 From: Stefan Derkits Date: Thu, 23 May 2013 11:18:44 +0200 Subject: [PATCH] log at every timestamp, not only timestamps with events --- src/at/ac/tuwien/lsdc/sched/AbstractScheduler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/at/ac/tuwien/lsdc/sched/AbstractScheduler.java b/src/at/ac/tuwien/lsdc/sched/AbstractScheduler.java index aae7694..54f8840 100644 --- a/src/at/ac/tuwien/lsdc/sched/AbstractScheduler.java +++ b/src/at/ac/tuwien/lsdc/sched/AbstractScheduler.java @@ -46,7 +46,7 @@ public abstract class AbstractScheduler { // Scheduler has an internal Time "Abstraction" // at every point in time it checks for Events in his "EventList" // and handles them (via the individual scheduling algorithm) - protected long currTime; + protected long currTime = 0; // the timestamp at which the Scheduler is finished // it is updated with every added "EndEvent" @@ -154,8 +154,8 @@ public abstract class AbstractScheduler { LinkedList events = eventMap.get(currTime); // log.info(events.size() + " events at timestamp " + currTime); handleEvents(events); - doStateLogging(); } + doStateLogging(); // advance Time to next step currTime++; -- 2.43.0