From 5eb35a6da1ba939878c0351f35b4019fd406ffdd Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 19 May 2008 09:34:17 +0000 Subject: TaskManager bugfix. --- sources/core/VSTask.java | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'sources/core/VSTask.java') diff --git a/sources/core/VSTask.java b/sources/core/VSTask.java index 7c2b067..89c61fb 100644 --- a/sources/core/VSTask.java +++ b/sources/core/VSTask.java @@ -47,12 +47,12 @@ public class VSTask implements Comparable { return false; } - public boolean timeOver() { - if (isGlobalTimed) - return taskTime < process.getGlobalTime(); + public boolean timeOver() { + if (isGlobalTimed) + return taskTime < process.getGlobalTime(); - return taskTime < process.getTime(); - } + return taskTime < process.getTime(); + } public boolean equals(VSTask task) { return event.equals(task.getEvent()) @@ -183,18 +183,18 @@ public class VSTask implements Comparable { else if (taskTime > task.getTaskTime()) return 1; - /* If it's a ProtocolEvent, it should get handled first */ - boolean a = event instanceof ProtocolEvent; - boolean b = task.getEvent() instanceof ProtocolEvent; + /* If it's a ProtocolEvent, it should get handled first */ + boolean a = event instanceof ProtocolEvent; + boolean b = task.getEvent() instanceof ProtocolEvent; - if (a && b) - return 0; + if (a && b) + return 0; - if (a) - return -1; + if (a) + return -1; - if (b) - return 1; + if (b) + return 1; } return 0; -- cgit v1.2.3