mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-03 11:34:12 +02:00
Reverse order of operation
This commit is contained in:
@@ -71,6 +71,10 @@ int main (int argc, char *argv[])
|
||||
sizeof(ModuleFrame),
|
||||
0);
|
||||
|
||||
if (n_bytes_metadata != sizeof(ModuleFrame)) {
|
||||
throw runtime_error("Unexpected number of bytes in metadata.");
|
||||
}
|
||||
|
||||
if (i == 0) {
|
||||
pulse_id = metadata_buffer->pulse_id;
|
||||
}
|
||||
@@ -80,10 +84,6 @@ int main (int argc, char *argv[])
|
||||
cout << " instead of " << pulse_id << endl;
|
||||
}
|
||||
|
||||
if (n_bytes_metadata != sizeof(ModuleFrame)) {
|
||||
throw runtime_error("Unexpected number of bytes in metadata.");
|
||||
}
|
||||
|
||||
auto n_bytes_image = zmq_recv(
|
||||
sockets[i],
|
||||
image_buffer.get(),
|
||||
|
||||
Reference in New Issue
Block a user