Sys::Load - Perl module for getting the current system load and uptime
use Sys::Load qw/getload uptime/; print "System load: ", (getload())[0], "\n"; print "System uptime: ", int uptime(), "\n";
getload() returns 3 elements: representing load averages over the last 1, 5 and 15 minutes. On failure empty list is returned.
uptime() returns the system uptime in seconds. Returns 0 on failure.
None by default.
Peter BARABAS, <z0d [@] artifact [.] hu>
getloadavg(3), uptime(1)
To install Sys::Load, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Sys::Load
CPAN shell
perl -MCPAN -e shell install Sys::Load
For more information on module installation, please visit the detailed CPAN module installation guide.