From 7dd68f20059d8aecbecf475042e7337129088428 Mon Sep 17 00:00:00 2001 From: Mac Mollison Date: Fri, 26 Mar 2010 12:40:25 -0400 Subject: 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. --- unit_trace/gedf_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): # Only to the check when time has moved forward. # (It is common to have records with simultaneous timestamps.) if last_time is not None and last_time != record.when: - errors = _gedf_check(eligible,on_cpu,record.when,m) + errors = _gedf_check(eligible,on_cpu,last_time,m) for error in errors: yield error -- cgit v1.2.2