Merge pull request #246 from slsdetectorgroup/rxpartial

virtual prints extra missing packets instead of negative
This commit is contained in:
Dhanya Thattil 2021-05-28 16:49:15 +02:00 committed by GitHub
commit 129ec6930f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -587,13 +587,18 @@ void Implementation::stopReceiver() {
for (int i = 0; i < numThreads; i++) { for (int i = 0; i < numThreads; i++) {
int nf = dataProcessor[i]->GetNumFramesCaught(); int nf = dataProcessor[i]->GetNumFramesCaught();
tot += nf; tot += nf;
std::string mpMessage = std::to_string((int64_t)mp[i]);
if ((int64_t)mp[i] < 0) {
mpMessage =
std::to_string(abs(mp[i])) + std::string(" (Extra)");
}
TLogLevel lev = (((int64_t)mp[i]) > 0) ? logINFORED : logINFOGREEN; TLogLevel lev = (((int64_t)mp[i]) > 0) ? logINFORED : logINFOGREEN;
LOG(lev) << LOG(lev) <<
// udp port number could be the second if selected interface is // udp port number could be the second if selected interface is
// 2 for jungfrau // 2 for jungfrau
"Summary of Port " << udpPortNum[i] "Summary of Port " << udpPortNum[i]
<< "\n\tMissing Packets\t\t: " << (int64_t)mp[i] << "\n\tMissing Packets\t\t: " << mpMessage
<< "\n\tComplete Frames\t\t: " << nf << "\n\tComplete Frames\t\t: " << nf
<< "\n\tLast Frame Caught\t: " << "\n\tLast Frame Caught\t: "
<< listener[i]->GetLastFrameIndexCaught(); << listener[i]->GetLastFrameIndexCaught();