From ae96fd8e2dfa02617fa750afc4d8faaf2bea06fb Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Tue, 23 Jan 2018 08:13:31 +0100 Subject: Use correct TAI bulletin download variable --- doc/zmq_remote.py | 2 +- src/ClockTAI.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/zmq_remote.py b/doc/zmq_remote.py index 47da520..b491800 100755 --- a/doc/zmq_remote.py +++ b/doc/zmq_remote.py @@ -51,7 +51,7 @@ if socks: print("Received: {}".format(len(data))) for i,part in enumerate(data): - print(" RX {}: {}".format(i, part)) + print(" RX {}: {}".format(i, part.decode().replace('\n',''))) else: print("ZMQ error: timeout") diff --git a/src/ClockTAI.cpp b/src/ClockTAI.cpp index bdef901..b2a3e87 100644 --- a/src/ClockTAI.cpp +++ b/src/ClockTAI.cpp @@ -97,7 +97,7 @@ int ClockTAI::get_valid_offset() else { for (const auto url : {tai_ietf_url, tai_tz_url}) { try { - download_tai_utc_bulletin(tai_ietf_url); + download_tai_utc_bulletin(url); #if TEST etiLog.level(info) << "Load bulletin from " << url; #endif -- cgit v1.2.3