diff --git a/RTCP/Cobalt/InputProc/src/Delays/Delays.cc b/RTCP/Cobalt/InputProc/src/Delays/Delays.cc index 3a43bcc62fbcda87736a9c9610e35350ef65d9a0..41bac56e8c06e6b57c869a30f4baebef169cf8bb 100644 --- a/RTCP/Cobalt/InputProc/src/Delays/Delays.cc +++ b/RTCP/Cobalt/InputProc/src/Delays/Delays.cc @@ -132,7 +132,9 @@ namespace LOFAR // obtain table last modification on file system struct stat filestats; - if (stat(resolved_path, &filestats) != 0) + string tablef0 = string(resolved_path) + "/table.f0"; + + if (stat(tablef0.c_str(), &filestats) != 0) THROW_SYSCALL("stat(): Cannot access IERSeop97 table"); result.last_fs_modification = filestats.st_mtime; diff --git a/RTCP/Cobalt/InputProc/test/tDelays.cc b/RTCP/Cobalt/InputProc/test/tDelays.cc index 5bb2cca2454b5da5fdecd80c81d78d13ac6037d3..e1414cb96353cb9d7aa5af9338bb6476be3aeb5c 100644 --- a/RTCP/Cobalt/InputProc/test/tDelays.cc +++ b/RTCP/Cobalt/InputProc/test/tDelays.cc @@ -26,6 +26,7 @@ #include <Common/LofarLogger.h> #include <Stream/FixedBufferStream.h> +#include <CoInterface/TimeFuncs.h> #include <InputProc/Delays/Delays.h> @@ -131,6 +132,13 @@ int main() { INIT_LOGGER( "tDelays" ); + // IERS table information + struct Delays::IERS_tablestats stats = Delays::get_IERS_tablestats(); + + LOG_INFO_STR("Using IERS table " << stats.realpath + << ", last entry is " << TimeDouble::toString(stats.last_entry_timestamp, false) + << ", table written on " << TimeDouble::toString(stats.last_fs_modification, false)); + return UnitTest::RunAllTests() > 0; }