Build fix.

This commit is contained in:
Gunnar Beutner 2013-02-09 19:12:30 +01:00
parent abff177ab5
commit 962d0e5fb2
2 changed files with 5 additions and 5 deletions

View File

@ -437,9 +437,9 @@ Dictionary::Ptr Host::CalculateDynamicMacros(void) const
if (hostcheck) {
macros->Set("HOSTSTATEID", 99);
macros->Set("HOSTSTATETYPE", Service::StateTypeToString(hostcheck->GetStateType());
macros->Set("HOSTATTEMPT", hostcheck->GetCurrentAttempt());
macros->Set("MAXHOSTATTEMPT", hostcheck->GetMaxAttempts());
macros->Set("HOSTSTATETYPE", Service::StateTypeToString(hostcheck->GetStateType()));
macros->Set("HOSTATTEMPT", hostcheck->GetCurrentCheckAttempt());
macros->Set("MAXHOSTATTEMPT", hostcheck->GetMaxCheckAttempts());
}
return macros;

View File

@ -278,8 +278,8 @@ Dictionary::Ptr Service::CalculateDynamicMacros(void) const
macros->Set("SERVICESTATE", StateToString(GetState()));
macros->Set("SERVICESTATEID", GetState());
macros->Set("SERVICESTATETYPE", StateTypeToString(GetStateType()));
macros->Set("SERVICEATTEMPT", GetCurrentAttempt());
macros->Set("MAXSERVICEATTEMPT", GetMaxAttempts());
macros->Set("SERVICEATTEMPT", GetCurrentCheckAttempt());
macros->Set("MAXSERVICEATTEMPT", GetMaxCheckAttempts());
return macros;
}