From ff094519a6b47b103ca69be1c3ced81e4bb83228 Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Thu, 9 Apr 2015 19:18:49 +0100 Subject: [PATCH] Fix interactive-mode delay timing when using --ifile. --- dump1090.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dump1090.c b/dump1090.c index 58883dc..504d8f1 100644 --- a/dump1090.c +++ b/dump1090.c @@ -562,7 +562,7 @@ void readDataFromFile(void) { ; // compute the time we can deliver the next buffer. - next_buffer_delivery.tv_nsec += (slen * (Modes.oversample ? 5000 : 6000) / 12); + next_buffer_delivery.tv_nsec += (outbuf->length * (Modes.oversample ? 5000 : 6000) / 12); normalize_timespec(&next_buffer_delivery); }