From 0c29c7928b03abcae7ad7f9f69a2acefd0d12182 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Mon, 13 Sep 2021 20:08:43 -0700 Subject: [PATCH] check_timings.py: start printing immediately old-commit-hash: a7cc34fd77f780d5c45abb0d0bfaefd000f96b2b --- selfdrive/debug/check_timings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)