Sys::LoadAvg - Perl extension for accessing system CPU load averages.
use Sys::LoadAvg qw( loadavg ); my @load = loadavg(); print $load[LOADAVG_1MIN], $/; print $load[LOADAVG_5MIN], $/; print $load[LOADAVG_15MIN], $/;
Module for accessing System load averages.
By default, the only exports are the constants LOADAVG_1MIN, LOADAVG_5MIN, and LOADAVG_15MIN. The loadavg() sub can be explicitly exported if desired.
Jeremy Madea <jeremy@cpan.org>
Copyright (C) 2002-2012 by Jeremy Madea
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.1 or, at your option, any later version of Perl 5 you may have available.
perl.
To install Sys::LoadAvg, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Sys::LoadAvg
CPAN shell
perl -MCPAN -e shell install Sys::LoadAvg
For more information on module installation, please visit the detailed CPAN module installation guide.