Skip to content

Commit

Permalink
don't calulate ppm for first 10 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
wiedehopf committed Apr 19, 2024
1 parent 6f22a4f commit e79d24a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions readsb.c
Original file line number Diff line number Diff line change
Expand Up @@ -728,8 +728,8 @@ static void timingStatistics(struct mag_buf *buf) {
fprintf(stderr, "libusb callback jitter: %6.0f us\n", (double) jitter);
}

{
static int64_t last_sys;
static int64_t last_sys;
if (last_sys || buf->sampleTimestamp * (1 / 12e6) > 10) {
static int64_t last_sample;
static int64_t interval;
int64_t nominal_interval = 30 * SECONDS * 1000;
Expand Down

0 comments on commit e79d24a

Please sign in to comment.