summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-01-23 08:13:31 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-01-23 08:13:31 +0100
commitae96fd8e2dfa02617fa750afc4d8faaf2bea06fb (patch)
treedbe198fd751bf028ac5dcc47f5a2e5cbde49dc0f
parent5c763a0a7c5d15a46574efd664431db67750e5c2 (diff)
downloaddabmux-ae96fd8e2dfa02617fa750afc4d8faaf2bea06fb.tar.gz
dabmux-ae96fd8e2dfa02617fa750afc4d8faaf2bea06fb.tar.bz2
dabmux-ae96fd8e2dfa02617fa750afc4d8faaf2bea06fb.zip
Use correct TAI bulletin download variable
-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