Skip to content

Commit

Permalink
reduced cpu CPU usage
Browse files Browse the repository at this point in the history
  • Loading branch information
EpeR1 committed May 25, 2020
1 parent 5edb640 commit 09bfce1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion ubnt_unifi.php
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ function numchild($child, $n){ //How many child process is alive
$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);
Expand Down

0 comments on commit 09bfce1

Please sign in to comment.