Peter Barabas > Sys-Load-0.2 > Sys::Load

Download:
Sys-Load-0.2.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.2   Source  

NAME ^

Sys::Load - Perl module for getting the current system load and uptime

SYNOPSIS ^

  use Sys::Load qw/getload uptime/;
  print "System load: ", (getload())[0], "\n";
  print "System uptime: ", int uptime(), "\n";

DESCRIPTION ^

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.

EXPORT

None by default.

AUTHOR ^

Peter BARABAS, <z0d [@] artifact [.] hu>

SEE ALSO ^

getloadavg(3), uptime(1)

syntax highlighting: