mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-12 12:57:13 +02:00
removing warning in gcc
This commit is contained in:
@ -631,12 +631,12 @@ void Listener::PrintFifoStatistics() {
|
|||||||
FILE_LOG(logDEBUG1) << "numFramesStatistic:" << numFramesStatistic << " numPacketsStatistic:" << numPacketsStatistic;
|
FILE_LOG(logDEBUG1) << "numFramesStatistic:" << numFramesStatistic << " numPacketsStatistic:" << numPacketsStatistic;
|
||||||
|
|
||||||
//calculate packet loss
|
//calculate packet loss
|
||||||
int64_t loss = -1;
|
int64_t loss = (numFramesStatistic*(generalData->packetsPerFrame)) - numPacketsStatistic;
|
||||||
loss = (numFramesStatistic*(generalData->packetsPerFrame)) - numPacketsStatistic;
|
|
||||||
numPacketsStatistic = 0;
|
numPacketsStatistic = 0;
|
||||||
numFramesStatistic = 0;
|
numFramesStatistic = 0;
|
||||||
|
|
||||||
FILE_LOG(loss ? logINFORED : logINFOGREEN) << "[" << *udpPortNumber << "]: "
|
const auto color = loss ? logINFORED : logINFOGREEN;
|
||||||
|
FILE_LOG(color) << "[" << *udpPortNumber << "]: "
|
||||||
"Packet_Loss:" << loss <<
|
"Packet_Loss:" << loss <<
|
||||||
" Used_Fifo_Max_Level:" << fifo->GetMaxLevelForFifoBound() <<
|
" Used_Fifo_Max_Level:" << fifo->GetMaxLevelForFifoBound() <<
|
||||||
" \tFree_Slots_Min_Level:" << fifo->GetMinLevelForFifoFree() <<
|
" \tFree_Slots_Min_Level:" << fifo->GetMinLevelForFifoFree() <<
|
||||||
|
Reference in New Issue
Block a user