Skip to content
Snippets Groups Projects
Commit 282011f9 authored by John Romein's avatar John Romein
Browse files

BugID: 225

Removed time variable that was always zero
parent 4cfd184c
No related branches found
No related tags found
No related merge requests found
......@@ -79,17 +79,12 @@ namespace LOFAR
BeamletBuffer& operator= (const BeamletBuffer& that);
// Needed for mapping a timestamp to a place in the buffer
TimeStamp time0;
uint mapTime2Index(TimeStamp time) const {
// TODO: this is very slow because of the if and the %
if (time > time0) {
return (time - time0) % itsSize;
} else {
return (time - time0) % itsSize + itsSize;
};
// TODO: this is very slow because of the %
return time % itsSize;
}
// checked for skippeddata and flag it in chunks
// checked for skipped data and flag it in chunks
void checkForSkippedData(TimeStamp writeBegin);
//# Datamembers
......
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