php ffi get load average

Solutions on MaxInterview for php ffi get load average by the best coders in the world

showing results for - "php ffi get load average"
Laura
24 Mar 2020
1
2Use this:
3<?php
4$loads=sys_getloadavg();
5$core_nums=trim(shell_exec("grep -P '^physical id' /proc/cpuinfo|wc -l"));
6$load=$loads[0]/$core_nums;
7echo $load;
8?>
9
10
similar questions
queries leading to this page
php ffi get load average