Rename Detector Name to lower case

This commit is contained in:
2020-09-30 13:49:57 +02:00
parent fd878691e2
commit b8b152e5ed
4 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -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);
+3 -3
View File
@@ -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.