mirror of https://github.com/Icinga/icinga2.git
parent
35f6f60390
commit
e29e25aefd
|
@ -85,17 +85,17 @@ bool ApiListener::UpdateConfigDir(const ConfigDirInformation& oldConfigInfo, con
|
||||||
|
|
||||||
double oldTimestamp;
|
double oldTimestamp;
|
||||||
|
|
||||||
if (!oldConfig->Contains(".timestamp"))
|
if (!oldConfig->Contains("/.timestamp"))
|
||||||
oldTimestamp = 0;
|
oldTimestamp = 0;
|
||||||
else
|
else
|
||||||
oldTimestamp = oldConfig->Get(".timestamp");
|
oldTimestamp = oldConfig->Get("/.timestamp");
|
||||||
|
|
||||||
double newTimestamp;
|
double newTimestamp;
|
||||||
|
|
||||||
if (!newConfig->Contains(".timestamp"))
|
if (!newConfig->Contains("/.timestamp"))
|
||||||
newTimestamp = Utility::GetTime();
|
newTimestamp = Utility::GetTime();
|
||||||
else
|
else
|
||||||
newTimestamp = newConfig->Get(".timestamp");
|
newTimestamp = newConfig->Get("/.timestamp");
|
||||||
|
|
||||||
/* skip update if our config is newer */
|
/* skip update if our config is newer */
|
||||||
if (oldTimestamp >= newTimestamp)
|
if (oldTimestamp >= newTimestamp)
|
||||||
|
|
Loading…
Reference in New Issue