Voting

: max(four, eight)?
(Example: nine)

The Note You're Voting On

kexianbin at diyism dot com
11 years ago
Use this:
<?php
$loads
=sys_getloadavg();
$core_nums=trim(shell_exec("grep -P '^physical id' /proc/cpuinfo|wc -l"));
$load=$loads[0]/$core_nums;
echo
$load;
?>

<< Back to user notes page

To Top