mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-11 07:02:04 +02:00
A bit of fixes
This commit is contained in:
@@ -184,8 +184,6 @@ int main (int argc, char *argv[]) {
|
||||
|
||||
// Wait for sync.
|
||||
zmq_recv(meta_socket, nullptr, 0, 0);
|
||||
|
||||
|
||||
}
|
||||
|
||||
input_file.close();
|
||||
|
||||
@@ -61,7 +61,7 @@ int main (int argc, char *argv[])
|
||||
auto image_buffer = make_unique<uint16_t[]>(512 * 1024);
|
||||
unordered_map<uint64_t, int> received_counter;
|
||||
|
||||
size_t n_frames_left = 32*50;
|
||||
size_t n_frames_left = 32*BufferUtils::STREAM_BLOCK_SIZE;
|
||||
|
||||
while (true) {
|
||||
auto n_bytes_metadata = zmq_recv(
|
||||
@@ -99,11 +99,13 @@ int main (int argc, char *argv[])
|
||||
}
|
||||
|
||||
if (n_frames_left == 0) {
|
||||
cout << "Batch finished." << endl;
|
||||
for(auto& data:received_counter) {
|
||||
cout << data.first << ": " << data.second << endl;
|
||||
}
|
||||
// zmq_send(meta_socket, "", strlen(""), 0);
|
||||
n_frames_left = 32*50;
|
||||
|
||||
zmq_send(meta_socket, "", strlen(""), 0);
|
||||
n_frames_left = 32*BufferUtils::STREAM_BLOCK_SIZE;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user