Fix compatibility issue with the $icinga.timet$ macro

fixes #11483
This commit is contained in:
Gunnar Beutner 2016-06-21 08:23:31 +02:00
parent c393a3678f
commit b5a38f6707
1 changed files with 1 additions and 1 deletions

View File

@ -210,7 +210,7 @@ bool IcingaApplication::ResolveMacro(const String& macro, const CheckResult::Ptr
double now = Utility::GetTime();
if (macro == "timet") {
*result = now;
*result = static_cast<long>(now);
return true;
} else if (macro == "long_date_time") {
*result = Utility::FormatDateTime("%Y-%m-%d %H:%M:%S %z", now);