Fix timestamp path

fixes #5211
This commit is contained in:
Jean Flach 2017-04-28 16:50:36 +02:00
parent 35f6f60390
commit e29e25aefd
1 changed files with 4 additions and 4 deletions

View File

@ -85,17 +85,17 @@ bool ApiListener::UpdateConfigDir(const ConfigDirInformation& oldConfigInfo, con
double oldTimestamp;
if (!oldConfig->Contains(".timestamp"))
if (!oldConfig->Contains("/.timestamp"))
oldTimestamp = 0;
else
oldTimestamp = oldConfig->Get(".timestamp");
oldTimestamp = oldConfig->Get("/.timestamp");
double newTimestamp;
if (!newConfig->Contains(".timestamp"))
if (!newConfig->Contains("/.timestamp"))
newTimestamp = Utility::GetTime();
else
newTimestamp = newConfig->Get(".timestamp");
newTimestamp = newConfig->Get("/.timestamp");
/* skip update if our config is newer */
if (oldTimestamp >= newTimestamp)