Skip to content
Snippets Groups Projects
Commit 51341df0 authored by Thomas Owen James's avatar Thomas Owen James :speech_balloon: Committed by Giovanna Lazzari Miotto
Browse files

[config] Apply suggested changes from code review

parent a7b7073b
No related branches found
No related tags found
1 merge request!75[processing] Support for multiple TBB pipelines
......@@ -32,25 +32,25 @@ void LoadConfigs(std::string &basename, uint numStreams, std::vector<config> &ou
ctrl Pipeline::control;
int main(int argc, char *argv[]) {
(void) (argc);
(void) (argv);
(void)(argc);
(void)(argv);
if (argc < 2) {
LOG(DEBUG) << "no arguments provided to scdaq, try --help";
return 1;
}
if (argc < 2) {
LOG(DEBUG) << "no arguments provided to scdaq, try --help";
return 1;
}
if ((std::string(argv[1]) == "-h") || (std::string(argv[1]) == "--help")) {
LOG(DEBUG) << "HELP: expected arguments --config [config basename] --nstreams [number of "
"parallel streams]";
return 1;
}
if ((std::string(argv[1]) == "-h") || (std::string(argv[1]) == "--help")) {
LOG(DEBUG) << "HELP: expected arguments --config [config basename] --nstreams [number of "
"parallel streams]";
return 1;
}
if ((argc < 3)) {
LOG(ERROR) << "error occurred, number of arguments is under 2, expected --config [config "
"basename] (and optionally --nstreams [number of parallel streams]), try --help";
return 1;
}
if ((argc < 3)) {
LOG(ERROR) << "error occurred, number of arguments is less than 2, expected --config [config "
"basename] (and optionally --nstreams [number of parallel streams]), try --help";
return 1;
}
uint num_streams = 0;
std::string config_basename{};
......
......@@ -78,6 +78,9 @@ output_force_write:yes
##
################################################################################
# enable development functionalities (e.g. TCP input filter)
dev_TCPAutoReconnectOnFailure:false
#scdaq port
port:8000
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment