Solaris::loadavg - get system load averages
use Solaris::loadavg; @avgs = loadavg(); printf "load average: %f %f %f\n", @avgs;
# get the first two load averages @avgs = loadavg(2); printf "first load avg (1min): %f\n", @avgs[LOADAVG_1MIN]; printf "second load avg (5min): %f\n", @avgs[LOADAVG_5MIN]; When called without an argument, the loadavg() function returns all three load averages.
Alexander Golomshtok, <golomshtok_alexander@jpmorgan.com>
perl,getloadavg(3C)
To install Solaris::loadavg, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Solaris::loadavg
CPAN shell
perl -MCPAN -e shell install Solaris::loadavg
For more information on module installation, please visit the detailed CPAN module installation guide.