From 641a1ffdf4e6d0bddfec27b474356254214d0cb7 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sun, 10 Jan 2016 16:13:31 +0100 Subject: Set edi TIST, still in an incorrect way --- src/ClockTAI.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/ClockTAI.cpp') 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 #include @@ -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 -- cgit v1.2.3