aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorM.Gergő2020-05-25 21:30:31 +0200
committerM.Gergő2020-05-25 21:30:31 +0200
commit09bfce15a8d9e4737ed902b1e09e58d728843fde (patch)
tree9b8b9e5ce874dfdd3700acb25d0d656b5dd952e0
parent5edb64013867632492de00f5452e60046eb44970 (diff)
downloadmunin-unifi-09bfce15a8d9e4737ed902b1e09e58d728843fde.tar.gz
munin-unifi-09bfce15a8d9e4737ed902b1e09e58d728843fde.zip
reduced cpu CPU usage
-rwxr-xr-xtest.sh2
-rw-r--r--ubnt_unifi.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/test.sh b/test.sh
index 8ec99d3..b8e828c 100755
--- a/test.sh
+++ b/test.sh
@@ -4,7 +4,7 @@ controller="aaa.bbb.com"
timeout="800"
retry="1"
maxproc="24"
-#devnet="192.168.1.0/24"
+devnet="192.168.1.0/24"
devices="ap1.local ap10.aaa.bb index.hu 192.168.1.1 192.168.1.111"
resolvdup="1"
diff --git a/ubnt_unifi.php b/ubnt_unifi.php
index 821d1f0..2b5726b 100644
--- a/ubnt_unifi.php
+++ b/ubnt_unifi.php
@@ -587,7 +587,7 @@ while(numchild($child, $maxproc)){ //Receive the raw data segments and wait for
$raw = @array_merge($raw, @json_decode($ret, true));
shmop_write($shm,"\0\0\0\0\0", 0);
}
- usleep(1); //Less cpu load
+ usleep(100); //Less cpu load
}
sem_remove($sf);