From 1b8dfb2bef9853e4ddc410f8f0379039e4d44ece Mon Sep 17 00:00:00 2001 From: Torsten Dreyer Date: Sun, 12 Feb 2017 17:39:12 +0100 Subject: [PATCH] Accept time token for .dirindex files print the timestamp on log-level "info" --- simgear/io/HTTPRepository.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/simgear/io/HTTPRepository.cxx b/simgear/io/HTTPRepository.cxx index b0335783..6e75b104 100644 --- a/simgear/io/HTTPRepository.cxx +++ b/simgear/io/HTTPRepository.cxx @@ -494,6 +494,11 @@ private: continue; // ignore path, next line } + if( typeData == "time" && tokens.size() > 1 ) { + SG_LOG(SG_TERRASYNC, SG_INFO, ".dirindex at '" << p.str() << "' timestamp: " << tokens[1] ); + continue; + } + if( tokens.size() < 3 ) { SG_LOG(SG_TERRASYNC, SG_WARN, "malformed .dirindex file: not enough tokens in line '" << line << "' (ignoring line)" ); continue;