mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-22 14:38:14 +02:00
changed check
This commit is contained in:
parent
608f292e4f
commit
fe24c8fb86
@ -296,10 +296,9 @@ void Listener::ThreadExecution() {
|
|||||||
fifo->PushAddress(buffer);
|
fifo->PushAddress(buffer);
|
||||||
|
|
||||||
//Statistics
|
//Statistics
|
||||||
|
numFramesStatistic++;
|
||||||
if (numFramesStatistic >= generalData->maxFramesPerFile)
|
if (numFramesStatistic >= generalData->maxFramesPerFile)
|
||||||
PrintFifoStatistics();
|
PrintFifoStatistics();
|
||||||
numFramesStatistic++;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -525,6 +524,9 @@ uint32_t Listener::CreateAnImage(char* buf) {
|
|||||||
|
|
||||||
|
|
||||||
void Listener::PrintFifoStatistics() {
|
void Listener::PrintFifoStatistics() {
|
||||||
|
//#ifdef VERBOSE
|
||||||
|
cout << "numFramesStatistic:" << numFramesStatistic << " numPacketsStatistic:" << numPacketsStatistic << endl;
|
||||||
|
//#endif
|
||||||
//calculate packet loss
|
//calculate packet loss
|
||||||
int64_t loss = -1;
|
int64_t loss = -1;
|
||||||
loss = (numFramesStatistic*(generalData->packetsPerFrame)) - numPacketsStatistic;
|
loss = (numFramesStatistic*(generalData->packetsPerFrame)) - numPacketsStatistic;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user