From f3644572ea68aacf96ce5a1a9b9e5ce2cf617d95 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 19 May 2008 00:46:35 +0000 Subject: local process time goes on if process is crashed. simulates BIOS time. --- sources/core/VSTask.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'sources/core/VSTask.java') 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; -- cgit v1.2.3