Skip to content
Snippets Groups Projects
Commit 8419a3fe authored by Sergey Gorbunov's avatar Sergey Gorbunov Committed by Dominik Smith
Browse files

warning fix in the bmon unpacker

parent 68f68cfe
No related branches found
No related tags found
1 merge request!1400warning fix in the bmon unpacker
Pipeline #24985 passed
...@@ -24,11 +24,6 @@ namespace cbm::algo::bmon ...@@ -24,11 +24,6 @@ namespace cbm::algo::bmon
// --- Output data // --- Output data
resultType result = {}; resultType result = {};
TimeSpec time;
// --- Current Timeslice start time in epoch units. Note that it is always a multiple of epochs
// --- and the epoch is a multiple of ns.
time.currentTsTime = static_cast<uint64_t>(tTimeslice / critof001::kuEpochInNs) % critof001::kulEpochCycleEp;
// --- Number of messages in microslice // --- Number of messages in microslice
auto msSize = msDescr.size; auto msSize = msDescr.size;
...@@ -63,6 +58,13 @@ namespace cbm::algo::bmon ...@@ -63,6 +58,13 @@ namespace cbm::algo::bmon
} }
} }
TimeSpec time;
// --- Current Timeslice start time in epoch units. Note that it is always a multiple of epochs
// --- and the epoch is a multiple of ns.
time.currentTsTime = static_cast<uint64_t>(tTimeslice / critof001::kuEpochInNs) % critof001::kulEpochCycleEp;
ProcessEpochMessage(message[0], time);
// --- The last message in the MS is expected to be EndOfMs. // --- The last message in the MS is expected to be EndOfMs.
if (!message[numMessages - 1].isEndOfMs()) { if (!message[numMessages - 1].isEndOfMs()) {
result.second.fNumErrInvalidLastMessage++; result.second.fNumErrInvalidLastMessage++;
...@@ -71,7 +73,7 @@ namespace cbm::algo::bmon ...@@ -71,7 +73,7 @@ namespace cbm::algo::bmon
//Check if last message is "EndOfMs"!! Maybe loop to messageNr < numMessages - 1 //Check if last message is "EndOfMs"!! Maybe loop to messageNr < numMessages - 1
// --- Message loop // --- Message loop
for (uint32_t messageNr = 0; messageNr < numMessages; messageNr++) { for (uint32_t messageNr = 1; messageNr < numMessages; messageNr++) {
// --- Action depending on message type // --- Action depending on message type
switch (message[messageNr].getMessageType()) { switch (message[messageNr].getMessageType()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment