Skip to content
Snippets Groups Projects
Commit 6be8860b authored by Jan David Mol's avatar Jan David Mol
Browse files

Task #7350: Cleaned up send_status a bit

parent 6041e527
Branches
No related tags found
No related merge requests found
...@@ -33,7 +33,7 @@ using boost::format; ...@@ -33,7 +33,7 @@ using boost::format;
static void usage(const char *argv0) static void usage(const char *argv0)
{ {
cerr << "Usage: " << argv0 << " status" << endl; cerr << "Usage: " << argv0 << " success" << endl;
cerr << endl; cerr << endl;
cerr << " -h: print this message" << endl; cerr << " -h: print this message" << endl;
} }
...@@ -64,7 +64,7 @@ int main(int argc, char **argv) ...@@ -64,7 +64,7 @@ int main(int argc, char **argv)
return EXIT_FAILURE; return EXIT_FAILURE;
} }
int status = atoi(argv[optind]); int success = atoi(argv[optind]);
// send status feedback // send status feedback
ToBus bus("lofar.task.feedback.status"); ToBus bus("lofar.task.feedback.status");
...@@ -73,7 +73,7 @@ int main(int argc, char **argv) ...@@ -73,7 +73,7 @@ int main(int argc, char **argv)
"Cobalt/GPUProc/sendStatus", "Cobalt/GPUProc/sendStatus",
"", "",
"Status feedback", "Status feedback",
status); success);
bus.send(msg); bus.send(msg);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment