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

Task #3696: Cleanup

parent d46dfb3f
No related branches found
No related tags found
No related merge requests found
......@@ -9,8 +9,6 @@
namespace LOFAR {
namespace RTCP {
#define NR_RSPBOARDS 4
struct BufferSettings {
private:
static const unsigned currentVersion = 1;
......
......@@ -10,6 +10,7 @@
#include "Ranges.h"
#include "SampleType.h"
#include <string>
#include <vector>
namespace LOFAR {
namespace RTCP {
......@@ -28,7 +29,7 @@ private:
static size_t dataSize( const struct BufferSettings &settings ) {
return sizeof settings
+ NR_RSPBOARDS * (Ranges::size(settings.nrFlagRanges) + 8)
+ settings.nrBoards * (Ranges::size(settings.nrFlagRanges) + 8)
+ settings.nrBeamlets * (settings.nrSamples * sizeof(T) + 128);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment