From 982295c92484494daff29b5eeb659e1592b61571 Mon Sep 17 00:00:00 2001 From: M.Gergő Date: Tue, 26 May 2020 13:56:06 +0200 Subject: Readme update --- ubnt_unifi.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'ubnt_unifi.php') diff --git a/ubnt_unifi.php b/ubnt_unifi.php index 880c7df..2358575 100644 --- a/ubnt_unifi.php +++ b/ubnt_unifi.php @@ -443,7 +443,7 @@ return $ret; -/********************* START *******************/ +/******************************** START ********************************/ $hosts = explode(" ", $hosts); @@ -510,6 +510,7 @@ for($i=0,$j=0; $i<$numhost; $i++){ //Sorting addresses for child-processes } +/******************************** Child Processes ********************************/ for ($p=0; $p<$maxproc; $p++){ //Starts child processes to retrieve SNMP data. @@ -574,7 +575,7 @@ function numchild($child, $n){ //How many child process is alive return $l; } - +/******************************** Wait for childs ********************************/ while(numchild($child, $maxproc)){ //Receive the raw data segments and wait for child processes for($p=0; $p<$maxproc; $p++){ @@ -603,11 +604,11 @@ $hostsip = $hostsipr; //$test = collect_response_time($raw, "ap12.wireless.lan"); //print_r($test); +/******************************** Print the result ********************************/ if(!is_array($raw) /*|| empty($raw)*/){ die(); } - if (isset($argv[1]) and $argv[1] == "config"){ // munin config print_header(collect_radio_summary($raw,null)); -- cgit v1.2.3