diff --git a/selfdrive/debug/check_timings.py b/selfdrive/debug/check_timings.py index 000a73b781..8b289138d3 100755 --- a/selfdrive/debug/check_timings.py +++ b/selfdrive/debug/check_timings.py @@ -18,7 +18,7 @@ if __name__ == "__main__": for m in msgs: ts[s].append(m.logMonoTime / 1e6) - if len(ts[s]) == ts[s].maxlen: + if len(ts[s]): d = np.diff(ts[s]) print(f"{s:17} {np.mean(d):.2f} {np.std(d):.2f} {np.max(d):.2f} {np.min(d):.2f}") time.sleep(1)