1sg_get_load_stats(3) Library Functions Manual sg_get_load_stats(3)
2
3
4
6 sg_get_load_stats - get system load
7
9 #include <statgrab.h>
10
11
12 sg_load_stats *sg_get_load_stats(void);
13
15 This call returns a pointer to a static buffer of sg_load_stats.
16
17 On most systems this function is just a wrapper to the getloadavg sys‐
18 tem call.
19
21 The structure returned is of type sg_load_stats.
22
23 typedef struct{
24 double min1;
25 double min5;
26 double min15;
27 }sg_load_stats;
28
29
30 min1 The load average over 1 minute.
31
32 min5 The load average over 5 minutes.
33
34 min15 The load average over 15 minutes.
35
37 statgrab(3)
38
40 http://www.i-scream.org/libstatgrab/
41
42
43
44i-scream $Date: 2005/04/25 11:25:45 $ sg_get_load_stats(3)