mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-07 10:30:41 +02:00
bugfix rxr numpacketscaught if stopped
This commit is contained in:
parent
21a1b872bf
commit
87d48fd943
@ -84,6 +84,9 @@ uint64_t Listener::GetNumMissingPacket(bool stoppedFlag, uint64_t numPackets) {
|
||||
if (!stoppedFlag) {
|
||||
return (numPackets - numPacketsCaught);
|
||||
}
|
||||
if (numPacketsCaught == 0) {
|
||||
return numPacketsCaught;
|
||||
}
|
||||
return (lastCaughtFrameIndex - firstIndex + 1) * generalData->packetsPerFrame - numPacketsCaught;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user