Make CompatUtility::GetCheckablePercentStateChange return a floating-point number

This commit is contained in:
Gunnar Beutner 2014-09-08 09:58:53 +02:00
parent bf2e3cb091
commit d84a3306d5
2 changed files with 3 additions and 3 deletions

View File

@ -242,9 +242,9 @@ int CompatUtility::GetCheckableIsReachable(const Checkable::Ptr& checkable)
return (checkable->IsReachable() ? 1 : 0); return (checkable->IsReachable() ? 1 : 0);
} }
String CompatUtility::GetCheckablePercentStateChange(const Checkable::Ptr& checkable) double CompatUtility::GetCheckablePercentStateChange(const Checkable::Ptr& checkable)
{ {
return Convert::ToString(checkable->GetFlappingCurrent()); return checkable->GetFlappingCurrent();
} }
int CompatUtility::GetCheckableProcessPerformanceData(const Checkable::Ptr& checkable) int CompatUtility::GetCheckableProcessPerformanceData(const Checkable::Ptr& checkable)

View File

@ -63,7 +63,7 @@ public:
static int GetCheckableFlapDetectionEnabled(const Checkable::Ptr& checkable); static int GetCheckableFlapDetectionEnabled(const Checkable::Ptr& checkable);
static int GetCheckableIsFlapping(const Checkable::Ptr& checkable); static int GetCheckableIsFlapping(const Checkable::Ptr& checkable);
static int GetCheckableIsReachable(const Checkable::Ptr& checkable); static int GetCheckableIsReachable(const Checkable::Ptr& checkable);
static String GetCheckablePercentStateChange(const Checkable::Ptr& checkable); static double GetCheckablePercentStateChange(const Checkable::Ptr& checkable);
static int GetCheckableProcessPerformanceData(const Checkable::Ptr& checkable); static int GetCheckableProcessPerformanceData(const Checkable::Ptr& checkable);
static String GetCheckableEventHandler(const Checkable::Ptr& checkable); static String GetCheckableEventHandler(const Checkable::Ptr& checkable);