1
0
Fork 0

Kill off timestamp warning for the NavCache

This check is no longer needed, and causes console output when
using the joystick config editing GUI, which worries users.

http://code.google.com/p/flightgear-bugs/issues/detail?id=969
This commit is contained in:
James Turner 2013-06-25 21:53:19 +01:00
parent e5bace53af
commit 36896733d7

View file

@ -1390,13 +1390,6 @@ bool NavDataCache::isCachedFileModified(const SGPath& path) const
if (delta != 0)
{
SG_LOG(SG_NAVCACHE, SG_DEBUG, "NavCache: rebuild required for " << path << ". Timestamps: " << modtime << " != " << path.modTime());
if (delta < 30)
{
// File system time stamp has slightly changed. It's unlikely that the user has managed to change a file, start fgfs,
// and then changed file again within x seconds - so it's suspicious...
SG_LOG(SG_NAVCACHE, SG_ALERT, "NavCache: suspicious file timestamp change. Please report this to FlightGear. "
<< "Delta: " << delta << ", Timestamps: " << modtime << ", " << path.modTime() << ", path: " << path);
}
}
else
{