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 @@ ...@@ -9,8 +9,6 @@
namespace LOFAR { namespace LOFAR {
namespace RTCP { namespace RTCP {
#define NR_RSPBOARDS 4
struct BufferSettings { struct BufferSettings {
private: private:
static const unsigned currentVersion = 1; static const unsigned currentVersion = 1;
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
#include "Ranges.h" #include "Ranges.h"
#include "SampleType.h" #include "SampleType.h"
#include <string> #include <string>
#include <vector>
namespace LOFAR { namespace LOFAR {
namespace RTCP { namespace RTCP {
...@@ -28,7 +29,7 @@ private: ...@@ -28,7 +29,7 @@ private:
static size_t dataSize( const struct BufferSettings &settings ) { static size_t dataSize( const struct BufferSettings &settings ) {
return sizeof 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); + 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