ignore bad Record Gramplet/Report data (the data-verification tool catches them)

svn: r22664
This commit is contained in:
Paul Franklin 2013-07-08 21:52:56 +00:00
parent bcc17b3700
commit 9058a04bc1

View File

@ -315,6 +315,9 @@ def find_records(db, filter, top_size, callname,
def _record(lowest, highest, value, text, handle_type, handle, top_size): def _record(lowest, highest, value, text, handle_type, handle, top_size):
if value < 0: # ignore erroneous data
return # (since the data-verification tool already finds it)
if isinstance(value, Span): if isinstance(value, Span):
low_value = value.minmax[0] low_value = value.minmax[0]
high_value = value.minmax[1] high_value = value.minmax[1]