mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-08-09 17:30:30 +02:00
Rename Detector Name to lower case
This commit is contained in:
@@ -106,7 +106,7 @@ void ZmqLiveSender::send(const ImageMetadata& meta, const char *data)
|
||||
header.AddMember("run_name", run_name, header_alloc);
|
||||
|
||||
rapidjson::Value detector_name;
|
||||
detector_name.SetString(config_.DETECTOR_NAME.c_str(), header_alloc);
|
||||
detector_name.SetString(config_.detector_name.c_str(), header_alloc);
|
||||
header.AddMember("detector_name", detector_name, header_alloc);
|
||||
|
||||
header.AddMember("htype", "array-1.0", header_alloc);
|
||||
|
||||
@@ -25,13 +25,13 @@ int main (int argc, char *argv[])
|
||||
}
|
||||
|
||||
auto config = BufferUtils::read_json_config(string(argv[1]));
|
||||
string RECV_IPC_URL = BUFFER_LIVE_IPC_URL + config.DETECTOR_NAME + "-";
|
||||
string RECV_IPC_URL = BUFFER_LIVE_IPC_URL + config.detector_name + "-";
|
||||
|
||||
auto ctx = zmq_ctx_new();
|
||||
zmq_ctx_set(ctx, ZMQ_IO_THREADS, STREAM_ZMQ_IO_THREADS);
|
||||
|
||||
ZmqPulseSyncReceiver receiver(ctx, config.DETECTOR_NAME, config.n_modules);
|
||||
RamBuffer ram_buffer(config.DETECTOR_NAME, config.n_modules);
|
||||
ZmqPulseSyncReceiver receiver(ctx, config.detector_name, config.n_modules);
|
||||
RamBuffer ram_buffer(config.detector_name, config.n_modules);
|
||||
ZmqLiveSender sender(ctx, config);
|
||||
|
||||
// TODO: Remove stats trash.
|
||||
|
||||
Reference in New Issue
Block a user