#include <sys/types.h>#include <stdlib.h>#include <unistd.h>#include <lib.h>Include dependency graph for getloadavg.c:

Go to the source code of this file.
Defines | |
| #define | PERIODS 3 |
| #define | TICKSPERSLOT (_LOAD_UNIT_SECS * HZ) |
Functions | |
| int | getloadavg (double *loadavg, int nelem) |
|
|
Referenced by getloadavg(). |
|
|
Referenced by getloadavg(). |
|
||||||||||||
|
Definition at line 8 of file getloadavg.c. References _LOAD_HISTORY, _LOAD_UNIT_SECS, ENOSPC, errno, getsysinfo, loadinfo::last_clock, offset, p, PERIODS, PM_PROC_NR, loadinfo::proc_last_slot, loadinfo::proc_load_history, SI_LOADINFO, slots, and TICKSPERSLOT. Referenced by Print_Uptime(), and showtop(). |
1.4.6