From 09bfce15a8d9e4737ed902b1e09e58d728843fde Mon Sep 17 00:00:00 2001 From: M.Gergő Date: Mon, 25 May 2020 21:30:31 +0200 Subject: reduced cpu CPU usage --- ubnt_unifi.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ubnt_unifi.php') 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); -- cgit v1.2.3