mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-09 09:32:05 +02:00
Cleanup
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
#define SF_DAQ_FRAME_CACHE_HPP
|
||||
|
||||
// #include <cstddef>
|
||||
// #include <cstring>
|
||||
// #include <stdexcept>
|
||||
#include <iostream>
|
||||
#include <cstring>
|
||||
#include <vector>
|
||||
#include <functional>
|
||||
#include <shared_mutex>
|
||||
|
||||
@@ -2,11 +2,12 @@
|
||||
#define SF_DAQ_BUFFER_JFJ_FRAMEWORKER_HPP
|
||||
|
||||
#include <iostream>
|
||||
#include <cstring>
|
||||
#include <functional>
|
||||
#include "../../core-buffer/include/formats.hpp"
|
||||
#include "PacketUdpReceiver.hpp"
|
||||
#include "PacketBuffer.hpp"
|
||||
#include "FrameStats.hpp"
|
||||
#include "JfjFrameStats.hpp"
|
||||
|
||||
/** JungfrauJoch UDP receiver
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ inline uint64_t JfjFrameWorker::process_packets(BufferBinaryFormat& buffer){
|
||||
// Sanity check: rather throw than segfault...
|
||||
if(c_packet.packetnum >= JF_N_PACKETS_PER_FRAME) [[unlikely]] {
|
||||
std::stringstream ss;
|
||||
ss << "Packet index '" << c_packet.packetnum "' is out of range of " << JF_N_PACKETS_PER_FRAME << std::endl;
|
||||
ss << "Packet index '" << c_packet.packetnum << "' is out of range of " << JF_N_PACKETS_PER_FRAME << std::endl;
|
||||
throw std::range_error(ss.str());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user