]> granicus.if.org Git - icinga2/commitdiff
Fix compatibility issue with the $icinga.timet$ macro
authorGunnar Beutner <gunnar.beutner@netways.de>
Tue, 21 Jun 2016 06:23:31 +0000 (08:23 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Tue, 21 Jun 2016 06:23:31 +0000 (08:23 +0200)
fixes #11483

lib/icinga/icingaapplication.cpp

index 5d7afa21cc0668d56eafe98983e1d41ce23248cd..46a403493abc02dbc8d450f07bfdb18cdc7e5d5c 100644 (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);