From 614a77d2c91dac831a335c22d12e2b50ac6205ab Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 7 Nov 2020 09:29:08 +1100 Subject: [PATCH] Replay: allow for early log end in check_replay.py when session is killed we can lose one frame worth of EKF msgs --- Tools/Replay/check_replay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/Replay/check_replay.py b/Tools/Replay/check_replay.py index 6ee7fdb1c6..d33146393d 100755 --- a/Tools/Replay/check_replay.py +++ b/Tools/Replay/check_replay.py @@ -83,7 +83,7 @@ def check_log(logfile): if args.verbose: for mtype in counts.keys(): print("%s %u/%u %d" % (mtype, counts[mtype], base_counts[mtype], base_counts[mtype]-counts[mtype])) - if count == 0 or count != base_count: + if count == 0 or abs(count - base_count) > 30: failure += 1 for filename in args.logs: