From 7337285c8de0e6a9f251f3f3d3553e17689e77fc Mon Sep 17 00:00:00 2001 From: Thulinma Date: Wed, 5 Feb 2020 22:40:11 +0100 Subject: [PATCH 1/2] Fix debug level setting --- src/output/output_http.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/output/output_http.cpp b/src/output/output_http.cpp index cf56203d..11eed5ee 100644 --- a/src/output/output_http.cpp +++ b/src/output/output_http.cpp @@ -279,7 +279,7 @@ namespace Mist { if ((*it)["type"].asStringRef() == "str" && !p[it.key()].isString()){ p[it.key()] = p[it.key()].asString(); } - if (((*it)["type"].asStringRef() == "uint" || (*it)["type"].asStringRef() == "int") && !p[it.key()].isInt()){ + if ((*it)["type"].asStringRef() == "uint" || (*it)["type"].asStringRef() == "int" || (*it)["type"].asStringRef() == "debug"){ p[it.key()] = JSON::Value(p[it.key()].asInt()).asString(); } } From 9743f405a326bc56a33e6776306c97fd5f0e1c45 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Thu, 6 Feb 2020 00:10:44 +0100 Subject: [PATCH 2/2] 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