From bb2d5ecb267e8efa36b8e77cfcfbfd53ff92d3bb Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 14 Aug 2017 10:14:56 +0200 Subject: zmq2edi: add wait time statistics --- src/zmq2edi/zmq2edi.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src/zmq2edi/zmq2edi.cpp') diff --git a/src/zmq2edi/zmq2edi.cpp b/src/zmq2edi/zmq2edi.cpp index a915363..2d1963b 100644 --- a/src/zmq2edi/zmq2edi.cpp +++ b/src/zmq2edi/zmq2edi.cpp @@ -50,7 +50,7 @@ void usage(void) cerr << "Where the options are:" << endl; cerr << " is a ZMQ URL that points to a ODR-DabMux ZMQ output." << endl; - cerr << " -w Keep every ETI frame until TIST is milliseconds before current system time." << endl; + cerr << " -w Keep every ETI frame until TIST is milliseconds after current system time." << endl; cerr << " -d sets the destination ip." << endl; cerr << " -p sets the destination port." << endl; cerr << " -s sets the source port." << endl; @@ -224,7 +224,7 @@ int start(int argc, char **argv) edi_conf.destinations.push_back(edi_destination); - etiLog.level(info) << "Setting up EDI Sender withe delay " << delay_ms << " ms"; + etiLog.level(info) << "Setting up EDI Sender with delay " << delay_ms << " ms"; edisender.start(edi_conf, delay_ms); edisender.print_configuration(); @@ -239,7 +239,6 @@ int start(int argc, char **argv) etiLog.level(info) << "Entering main loop"; size_t frame_count = 0; - size_t loop_counter = 0; size_t error_count = 0; while (error_count < 10) { @@ -299,12 +298,6 @@ int start(int argc, char **argv) edisender.push_frame(f); frame_count++; } - - loop_counter++; - if (loop_counter > 250) { - etiLog.level(info) << "Transmitted " << frame_count << " ETI frames"; - loop_counter = 0; - } } return error_count > 0 ? 2 : 0; -- cgit v1.2.3