sg_get_load_stats(3) - Linux man page

Name

sg_get_load_stats - get system load

Synopsis

#include <statgrab.h>
sg_load_stats *sg_get_load_stats(void);

Description

This call returns a pointer to a static buffer of sg_load_stats.

On most systems this function is just a wrapper to the getloadavg system call.

Return Values

The structure returned is of type sg_load_stats.
typedef struct{
        double min1;
        double min5;
        double min15;
}sg_load_stats;
min1
The load average over 1 minute.
min5
The load average over 5 minutes.
min15
The load average over 15 minutes.

See Also

statgrab(3)

Website

http://www.i-scream.org/libstatgrab/