-
-
01 Sep 2002 10:01:55 UTC
- Distribution: Sys-Load
- Module version: 0.2
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (1)
- Testers (5421 / 14 / 2)
- Kwalitee
Bus factor: 0- 64.00% Coverage
- License: unknown
- Activity
24 month- Tools
- Download (1.75KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- unknown
- Reverse dependencies
- CPAN Testers List
- Dependency graph
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
Module Install Instructions
To install Sys::Load, copy and paste the appropriate command in to your terminal.
cpanm Sys::Load
perl -MCPAN -e shell install Sys::Load
For more information on module installation, please visit the detailed CPAN module installation guide.