summaryrefslogtreecommitdiffstats
path: root/src/ClockTAI.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-01-10 16:13:31 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-01-10 20:32:49 +0100
commit641a1ffdf4e6d0bddfec27b474356254214d0cb7 (patch)
treeb4baee3901dcc84d8251124c013c1a9a154bb6d3 /src/ClockTAI.cpp
parent70c5ba0867945bb097f466262ce03470b690518f (diff)
downloaddabmux-641a1ffdf4e6d0bddfec27b474356254214d0cb7.tar.gz
dabmux-641a1ffdf4e6d0bddfec27b474356254214d0cb7.tar.bz2
dabmux-641a1ffdf4e6d0bddfec27b474356254214d0cb7.zip
Set edi TIST, still in an incorrect way
Diffstat (limited to 'src/ClockTAI.cpp')
-rw-r--r--src/ClockTAI.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ClockTAI.cpp b/src/ClockTAI.cpp
index 1b2d4ef..992390b 100644
--- a/src/ClockTAI.cpp
+++ b/src/ClockTAI.cpp
@@ -30,6 +30,7 @@
#endif
#include "ClockTAI.h"
+#include "Log.h"
#include <stdio.h>
#include <errno.h>
@@ -71,11 +72,14 @@ int ClockTAI::get_offset()
else if (download_tai_utc_bulletin(tai_data_url2) == 0) {
m_offset = parse_tai_offset();
}
+ else {
+ throw std::runtime_error("Could not fetch TAI-UTC offset");
+ }
+
+ etiLog.level(info) << "Updated TAI-UTC offset to " << m_offset << "s.";
}
return m_offset;
-
- throw std::runtime_error("Could not fetch TAI-UTC offset");
}
#if SUPPORT_SETTING_CLOCK_TAI