sg_get_load_stats — get system load
#include <statgrab.h>
sg_load_stats *sg_get_load_stats();
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.
The structure returned is of type sg_load_stats.
typedef struct{
double min1;
double min5;
double min15;
}sg_load_stats;
The load average over 1 minute.
The load average over 5 minutes.
The load average over 15 minutes.