diff options
author | Mac Mollison <mollison@cs.unc.edu> | 2010-03-26 13:08:32 -0400 |
---|---|---|
committer | Mac Mollison <mollison@cs.unc.edu> | 2010-03-26 13:08:32 -0400 |
commit | a7bf26bd5597661b51c42e34ad2fad4c315b8aed (patch) | |
tree | 8f6e16a8c8a8884336d36be9bab15dd3081f5562 /unit_trace/latest.py | |
parent | 7dd68f20059d8aecbecf475042e7337129088428 (diff) |
Enable filter by ID instead of time
Filtering by time is too cumbersome (because time values are so large),
so we give each event record an ID and filter by that instead in
in the earliest and latest modules.
Diffstat (limited to 'unit_trace/latest.py')
-rw-r--r-- | unit_trace/latest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unit_trace/latest.py b/unit_trace/latest.py index 4abd3a2..38676a0 100644 --- a/unit_trace/latest.py +++ b/unit_trace/latest.py | |||
@@ -11,7 +11,7 @@ | |||
11 | def latest(stream, latest): | 11 | def latest(stream, latest): |
12 | for record in stream: | 12 | for record in stream: |
13 | if record.record_type=="event": | 13 | if record.record_type=="event": |
14 | if record.when > latest: | 14 | if record.id > latest: |
15 | break | 15 | break |
16 | else: | 16 | else: |
17 | yield record | 17 | yield record |