aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorM.Gergő2020-05-25 21:12:03 +0200
committerM.Gergő2020-05-25 21:12:03 +0200
commit62497539e3e0ffdd8c5f73d4c491d8f009278db9 (patch)
treebb68be2c762e689558e18c9c55a5b309ebfcdb48
parent9f852fdb5ed32fd5496c2b7fcf0e276111a2ace8 (diff)
downloadmunin-unifi-62497539e3e0ffdd8c5f73d4c491d8f009278db9.tar.gz
munin-unifi-62497539e3e0ffdd8c5f73d4c491d8f009278db9.zip
Ping_average option
-rw-r--r--ubnt_unifi.php2
1 files changed, 1 insertions, 1 deletions
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";
}