Skip to content
Snippets Groups Projects
Commit 1429b5e7 authored by Felix Weiglhofer's avatar Felix Weiglhofer Committed by Volker Friese
Browse files

algo::Unpack: Replace assert with error counter for invalid system versions.

parent 2381b9eb
No related branches found
No related tags found
1 merge request!1201cbmreco: Integrate algo::Unpack
......@@ -102,7 +102,11 @@ namespace cbm::algo
}
UnpackAlgo& algo = algoIt->second;
assert(timeslice->descriptor(comp, 0).sys_ver == sys_ver);
if (timeslice->descriptor(comp, 0).sys_ver != sys_ver) {
monitor.fNumErrInvalidSysVer++;
return;
}
const uint64_t numMsInComp = timeslice->num_microslices(comp);
for (uint64_t mslice = 0; mslice < numMsInComp; mslice++) {
......
......@@ -49,11 +49,13 @@ namespace cbm::algo
size_t fNumDigis = 0;
size_t fNumCompUsed = 0;
size_t fNumErrInvalidEqId = 0;
std::string print()
size_t fNumErrInvalidSysVer = 0;
std::string print() const
{
std::stringstream ss;
ss << "TS stats: num MS " << fNumMs << ", bytes " << fNumBytes << ", digis " << fNumDigis << ", components "
<< fNumCompUsed << std::endl;
<< fNumCompUsed << ", invalidEqIds " << fNumErrInvalidEqId << ", invalidSysVersions " << fNumErrInvalidSysVer
<< std::endl;
return ss.str();
}
};
......
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