aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdoc/zmq_remote.py2
-rw-r--r--src/ClockTAI.cpp2
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