Fix double-counting of overlap samples in stats.

This commit is contained in:
Oliver Jowett 2021-01-05 19:25:44 +08:00
parent af4951a494
commit e8adeb3414
1 changed files with 1 additions and 1 deletions

View File

@ -715,7 +715,7 @@ int main(int argc, char **argv) {
demodulate2400AC(buf); 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; Modes.stats_current.samples_dropped += buf->dropped;
end_cpu_timing(&start_time, &Modes.stats_current.demod_cpu); end_cpu_timing(&start_time, &Modes.stats_current.demod_cpu);