From e8adeb341479793c4dac77c2c35ac653c8ae5ad5 Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Tue, 5 Jan 2021 19:25:44 +0800 Subject: [PATCH] Fix double-counting of overlap samples in stats. --- dump1090.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dump1090.c b/dump1090.c index 2df4041..b15d45a 100644 --- a/dump1090.c +++ b/dump1090.c @@ -715,7 +715,7 @@ int main(int argc, char **argv) { demodulate2400AC(buf); } - Modes.stats_current.samples_processed += buf->validLength; + Modes.stats_current.samples_processed += buf->validLength - buf->overlap; Modes.stats_current.samples_dropped += buf->dropped; end_cpu_timing(&start_time, &Modes.stats_current.demod_cpu);