From 9743f405a326bc56a33e6776306c97fd5f0e1c45 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Thu, 6 Feb 2020 00:10:44 +0100 Subject: [PATCH] Sudden timestamp jump message --- src/io.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/io.cpp b/src/io.cpp index d692c230..aa83a690 100644 --- a/src/io.cpp +++ b/src/io.cpp @@ -469,6 +469,9 @@ namespace Mist { HIGH_MSG("Wrong order on track %lu ignored: %lu < %lu", tid, packet.getTime(), myMeta.tracks[tid].lastms); return; } + if (packet.getTime() > myMeta.tracks[tid].lastms + 30000 && myMeta.tracks[tid].lastms){ + WARN_MSG("Sudden jump in timestamp from %" PRIu64 " to %" PRIu64, myMeta.tracks[tid].lastms, packet.getTime()); + } } //Determine if we need to open the next page