source: trunk/minix/man/man3/getloadavg.3@ 15

Last change on this file since 15 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 842 bytes
Line 
1.\" @(#)getloadavg.3
2.\"
3.TH GETLOADAVG 3 "Nov 14, 2005"
4.AT 3
5.SH NAME
6getloadavg \- system load average values
7.SH SYNOPSIS
8.nf
9.ft B
10#include <stdlib.h>
11
12int getloadavg(double *\fIaverages\fP, int \fInelem\fP)
13.ft R
14.fi
15.SH DESCRIPTION
16.B Getloadavg
17returns the system load average values as elements of
18.IR averages
19up to
20a maximum of
21.IR nelem
22elements.
23The system load average is the average number of
24runnable processes over a certain period. Currently the averages are
25delivered over the last 1, 5 and 15 minutes of system usage. So
26currently the system maximum is 3.
27.SH RETURNS
28The returned value of
29.B getloadavg
30is zero or more if the call was successful, or a negative value if the
31call was unsuccessful. If the call was successful, the number of
32elements entered into
33.IR averages
34is returned.
35.SH SEE ALSO
36.BR uptime (1).
Note: See TracBrowser for help on using the repository browser.