diff options
| author | Paul Buetow <paul@buetow.org> | 2008-05-19 09:34:17 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2008-05-19 09:34:17 +0000 |
| commit | 5eb35a6da1ba939878c0351f35b4019fd406ffdd (patch) | |
| tree | d74636167291a21b5694eee3fd5f5564d1075424 /sources/core/VSTask.java | |
| parent | 6dec65db5dceaf8636a98f5bd51c31e20922ecdd (diff) | |
TaskManager bugfix.
Diffstat (limited to 'sources/core/VSTask.java')
| -rw-r--r-- | sources/core/VSTask.java | 28 |
1 files changed, 14 insertions, 14 deletions
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; |
