Scroll to navigation

LoadAvg(3) User Contributed Perl Documentation LoadAvg(3)

NAME

Sys::LoadAvg - Perl extension for accessing system CPU load averages.

SYNOPSIS

  use Sys::LoadAvg qw( loadavg );
  my @load = loadavg();
  print $load[LOADAVG_1MIN], $/;
  print $load[LOADAVG_5MIN], $/;
  print $load[LOADAVG_15MIN], $/;

DESCRIPTION

Module for accessing System load averages.

EXPORT

By default, the only exports are the constants LOADAVG_1MIN, LOADAVG_5MIN, and LOADAVG_15MIN. The loadavg() sub can be explicitly exported if desired.

AUTHOR

Jeremy Madea <jeremy@cpan.org>

COPYRIGHT AND LICENSE

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.

SEE ALSO

perl.

2024-03-04 perl v5.40.0