From 12820d22256f757720e25c1a10fcd883d34480ed Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Tue, 24 Feb 2015 09:27:37 +0100 Subject: [PATCH] Improve output formatting for the 'cluster-zone' check refs #8515 --- lib/methods/clusterzonechecktask.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/methods/clusterzonechecktask.cpp b/lib/methods/clusterzonechecktask.cpp index 12ead574c..f1a3eb9c6 100644 --- a/lib/methods/clusterzonechecktask.cpp +++ b/lib/methods/clusterzonechecktask.cpp @@ -25,7 +25,7 @@ #include "remote/endpoint.hpp" #include "remote/zone.hpp" #include "base/function.hpp" -#include "base/convert.hpp" +#include "base/utility.hpp" #include using namespace icinga; @@ -97,10 +97,10 @@ void ClusterZoneCheckTask::ScriptFunc(const Checkable::Ptr& checkable, const Che if (!connected) { cr->SetState(ServiceCritical); - cr->SetOutput("Zone '" + zoneName + "' is not connected. Log lag: " + Convert::ToString(lag)); + cr->SetOutput("Zone '" + zoneName + "' is not connected. Log lag: " + Utility::FormatDuration(lag)); } else { cr->SetState(ServiceOK); - cr->SetOutput("Zone '" + zoneName + "' is connected. Log lag: " + Convert::ToString(lag)); + cr->SetOutput("Zone '" + zoneName + "' is connected. Log lag: " + Utility::FormatDuration(lag)); } Array::Ptr perfdata = new Array();