Commit caebf42a authored by Purves, Murray's avatar Purves, Murray
Browse files

Fixing nrps calculation

parent 094bc49e
#include <cmath>
#include "radixio/spectrum.hh"
namespace radix
......@@ -17,7 +19,7 @@ short Spectrum::nrps() const
}
}
short nrps = short((maxChannels / 64) + 1);
short nrps = short(ceil((float(maxChannels) / 64.0) + 1.0));
return nrps;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment