summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMac Mollison <mollison@cs.unc.edu>2010-03-26 12:40:25 -0400
committerMac Mollison <mollison@cs.unc.edu>2010-03-26 12:40:25 -0400
commit7dd68f20059d8aecbecf475042e7337129088428 (patch)
tree619c2d942ec18856ba78e463b122dbdb0f5fa09e
parent1b7984c779cc47c69e93a77180bd63361b7cde6b (diff)
Fixed bug: Inversion length miscalculated
The function that calculates inversion length needs to be passed the correct time of the event that caused the inversion to end.
-rw-r--r--unit_trace/gedf_test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/unit_trace/gedf_test.py b/unit_trace/gedf_test.py
index 8457901..41bab96 100644
--- a/unit_trace/gedf_test.py
+++ b/unit_trace/gedf_test.py
@@ -37,7 +37,7 @@ def gedf_test(stream):
37 # Only to the check when time has moved forward. 37 # Only to the check when time has moved forward.
38 # (It is common to have records with simultaneous timestamps.) 38 # (It is common to have records with simultaneous timestamps.)
39 if last_time is not None and last_time != record.when: 39 if last_time is not None and last_time != record.when:
40 errors = _gedf_check(eligible,on_cpu,record.when,m) 40 errors = _gedf_check(eligible,on_cpu,last_time,m)
41 for error in errors: 41 for error in errors:
42 yield error 42 yield error
43 43