Skip to content
Snippets Groups Projects
Commit fa26f2d9 authored by Jan David Mol's avatar Jan David Mol
Browse files

Task #11059: Fixed total loss formula for beam-formed data

parent 37e9ae5e
Branches
Tags
No related merge requests found
...@@ -170,7 +170,7 @@ namespace LOFAR ...@@ -170,7 +170,7 @@ namespace LOFAR
{ {
// report statistics // report statistics
const float lostPerc = 100.0 * itsBlocksDroppedByMe / itsNrExpectedBlocks; const float lostPerc = 100.0 * itsBlocksDroppedByMe / itsNrExpectedBlocks;
const float didNotSendPerc = itsNrExpectedBlocks == 0 ? 0.0 : (100.0 - 100.0 * itsFractionalBlocksWritten) / itsNrExpectedBlocks; const float didNotSendPerc = itsNrExpectedBlocks == 0 ? 0.0 : 100.0 - 100.0 * itsFractionalBlocksWritten / itsNrExpectedBlocks;
const float didNotReceivePerc = didNotSendPerc + lostPerc; const float didNotReceivePerc = didNotSendPerc + lostPerc;
if (didNotReceivePerc > 0) if (didNotReceivePerc > 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment