From 3ba7723b1072e6aaca4bee342e14f0b80a3b7193 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Tue, 4 May 2021 15:27:15 +0200 Subject: [PATCH] BootMSOffset propagation in MistProcMKVExec --- src/process/process_exec.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/process/process_exec.cpp b/src/process/process_exec.cpp index 26111e69..a78ab687 100644 --- a/src/process/process_exec.cpp +++ b/src/process/process_exec.cpp @@ -20,6 +20,7 @@ JSON::Value & pData = pStat["proc_status_update"]["status"]; tthread::mutex statsMutex; uint64_t statSinkMs = 0; uint64_t statSourceMs = 0; +uint64_t bootMsOffset = 0; namespace Mist{ @@ -54,6 +55,7 @@ namespace Mist{ char *data = thisPacket.getData(); Bit::htobll(data + 12, pTime); if (pTime >= statSinkMs){statSinkMs = pTime;} + if (meta && meta.getBootMsOffset() != bootMsOffset){meta.setBootMsOffset(bootMsOffset);} } } void setInFile(int stdin_val){ @@ -125,6 +127,7 @@ namespace Mist{ maxSkipAhead = 0; if (!sendFirst){ sendPacketTime = thisPacket.getTime(); + bootMsOffset = M.getBootMsOffset(); sendFirst = true; /* uint64_t maxJitter = 1;