From 392231dc81821700c181aebd2db4ac081a2fdb23 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Fri, 29 Apr 2016 11:21:43 +0200 Subject: [PATCH] Perfdata: return ThresholdRange from getWarningThreshold() and getCriticalThreshold() refs #8194 --- modules/monitoring/library/Monitoring/Plugin/Perfdata.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/monitoring/library/Monitoring/Plugin/Perfdata.php b/modules/monitoring/library/Monitoring/Plugin/Perfdata.php index 44e377a3e..10fcbb277 100644 --- a/modules/monitoring/library/Monitoring/Plugin/Perfdata.php +++ b/modules/monitoring/library/Monitoring/Plugin/Perfdata.php @@ -230,21 +230,21 @@ class Perfdata /** * Return this performance data's warning treshold * - * @return string + * @return ThresholdRange */ public function getWarningThreshold() { - return (string) $this->warningThreshold; + return $this->warningThreshold; } /** * Return this performance data's critical treshold * - * @return string + * @return ThresholdRange */ public function getCriticalThreshold() { - return (string) $this->criticalThreshold; + return $this->criticalThreshold; } /**