Skip to content
Snippets Groups Projects
Commit f5958971 authored by Jan David Mol's avatar Jan David Mol
Browse files

COB-66: Use timestamp of table.f0 in measures, not of directory (which doesnt...

COB-66: Use timestamp of table.f0 in measures, not of directory (which doesnt actually change when measures are updated)
parent 00d4a625
No related branches found
No related tags found
1 merge request!6Import cobalt2 into lofar4
......@@ -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;
......
......@@ -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;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment