Rename host.total_* runtime macros to host.num_*.

Fixes #6188
This commit is contained in:
Michael Friedrich 2014-05-11 15:08:32 +02:00
parent 7e10a2bc5d
commit ad77709c07
1 changed files with 6 additions and 6 deletions

View File

@ -235,18 +235,18 @@ bool Host::ResolveMacro(const String& macro, const CheckResult::Ptr&, String *re
} else if (macro == "duration_sec") {
*result = Convert::ToString((long)(Utility::GetTime() - GetLastStateChange()));
return true;
} else if (macro == "total_services" || macro == "total_services_ok" || macro == "total_services_warning"
|| macro == "total_services_unknown" || macro == "total_services_critical") {
} else if (macro == "num_services" || macro == "num_services_ok" || macro == "num_services_warning"
|| macro == "num_services_unknown" || macro == "num_services_critical") {
int filter = -1;
int count = 0;
if (macro == "total_services_ok")
if (macro == "num_services_ok")
filter = ServiceOK;
else if (macro == "total_services_warning")
else if (macro == "num_services_warning")
filter = ServiceWarning;
else if (macro == "total_services_unknown")
else if (macro == "num_services_unknown")
filter = ServiceUnknown;
else if (macro == "total_services_critical")
else if (macro == "num_services_critical")
filter = ServiceCritical;
BOOST_FOREACH(const Service::Ptr& service, GetServices()) {