diff --git a/src/io.cpp b/src/io.cpp index 23908687..a6c8d234 100644 --- a/src/io.cpp +++ b/src/io.cpp @@ -533,6 +533,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 diff --git a/src/output/output_http.cpp b/src/output/output_http.cpp index 061a7d43..749bb60f 100644 --- a/src/output/output_http.cpp +++ b/src/output/output_http.cpp @@ -306,7 +306,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(); } }