summaryrefslogtreecommitdiff
path: root/sources/core/VSTask.java
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2008-05-19 00:46:35 +0000
committerPaul Buetow <paul@buetow.org>2008-05-19 00:46:35 +0000
commitf3644572ea68aacf96ce5a1a9b9e5ce2cf617d95 (patch)
tree385c45b107d939ffc099e4d08b03d325ca6c0823 /sources/core/VSTask.java
parent36f74586cc61f5899c16b6f84a04be37688cc719 (diff)
local process time goes on if process is crashed. simulates BIOS time.
Diffstat (limited to 'sources/core/VSTask.java')
-rw-r--r--sources/core/VSTask.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/sources/core/VSTask.java b/sources/core/VSTask.java
index 3869e7c..a476e35 100644
--- a/sources/core/VSTask.java
+++ b/sources/core/VSTask.java
@@ -175,6 +175,18 @@ public class VSTask implements Comparable {
else if (taskTime > task.getTaskTime())
return 1;
+
+ boolean a = event instanceof ProtocolEvent;
+ boolean b = task.getEvent() instanceof ProtocolEvent;
+
+ if (a && b)
+ return 0;
+
+ if (a)
+ return -1;
+
+ if (b)
+ return 1;
}
return 0;