From 5dbaf3319f1ef7335bc1395e19a096b8dd11ada9 Mon Sep 17 00:00:00 2001 From: Andrej Babic Date: Mon, 21 Sep 2020 10:16:05 +0200 Subject: [PATCH] Add sync attempt output counter --- sf-stream/src/ZmqPulseReceiver.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sf-stream/src/ZmqPulseReceiver.cpp b/sf-stream/src/ZmqPulseReceiver.cpp index ed94dd8..e21a94b 100644 --- a/sf-stream/src/ZmqPulseReceiver.cpp +++ b/sf-stream/src/ZmqPulseReceiver.cpp @@ -5,6 +5,7 @@ #include #include #include +#include #include "stream_config.hpp" @@ -81,6 +82,8 @@ uint64_t ZmqPulseReceiver::get_next_pulse_id() const } for (int i_sync; i_sync < SYNC_RETRY_LIMIT; i_sync++) { + cout << "Sync attempt " << i_sync << endl; + uint64_t min_pulse_id = 0; uint64_t max_pulse_id = numeric_limits::max();