From 62497539e3e0ffdd8c5f73d4c491d8f009278db9 Mon Sep 17 00:00:00 2001 From: M.Gergő Date: Mon, 25 May 2020 21:12:03 +0200 Subject: Ping_average option --- ubnt_unifi.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubnt_unifi.php b/ubnt_unifi.php index cfd3387..821d1f0 100644 --- a/ubnt_unifi.php +++ b/ubnt_unifi.php @@ -431,7 +431,7 @@ function collect_response_time($inp, $host){ //Calculates the Roundtrip time a $ret['head'][$i+1]['type'] = "GAUGE"; $ret['head'][$i+1]['min'] = "0"; - if(count($inp) != 0){ //count average + if(count($inp) != 0 && $host == null){ //count average $ret['data'][$i+1]['value'] = $sum_time/count($inp); $ret['data'][$i+1]['name'] = "ping_average"; } -- cgit v1.2.3