diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-08-14 10:14:56 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-08-14 10:14:56 +0200 |
commit | bb2d5ecb267e8efa36b8e77cfcfbfd53ff92d3bb (patch) | |
tree | f5a8d1899c9fa18e2358a45f8af4b41348fd7d52 /src/zmq2edi/zmq2edi.cpp | |
parent | 83ec06a70ac83473e1de1168ad0d88462292fd1f (diff) | |
download | dabmux-bb2d5ecb267e8efa36b8e77cfcfbfd53ff92d3bb.tar.gz dabmux-bb2d5ecb267e8efa36b8e77cfcfbfd53ff92d3bb.tar.bz2 dabmux-bb2d5ecb267e8efa36b8e77cfcfbfd53ff92d3bb.zip |
zmq2edi: add wait time statistics
Diffstat (limited to 'src/zmq2edi/zmq2edi.cpp')
-rw-r--r-- | src/zmq2edi/zmq2edi.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
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 << " <source> is a ZMQ URL that points to a ODR-DabMux ZMQ output." << endl; - cerr << " -w <delay> Keep every ETI frame until TIST is <delay> milliseconds before current system time." << endl; + cerr << " -w <delay> Keep every ETI frame until TIST is <delay> milliseconds after current system time." << endl; cerr << " -d <destination ip> sets the destination ip." << endl; cerr << " -p <destination port> sets the destination port." << endl; cerr << " -s <source port> 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; |