|
NAMEsg_get_load_stats, sg_get_load_stats_r, sg_free_load_stats - get system loadSYNOPSIS#include <statgrab.h>
DESCRIPTIONThese calls returns a pointer to a buffer containing information about cumulated machine load.API Shortcut
The sg_load_stats buffer received from sg_get_load_stats_r() must be freed using sg_free_load_stats() when not needed any more. The caller is responsible for doing it. On most systems this function is just a wrapper to the getloadavg system call. RETURN VALUESThe structure returned is of type sg_load_stats.typedef struct{ double min1; double min5; double min15; time_t systime; }sg_load_stats;
SEE ALSOstatgrab(3)WEBSITE⟨https://libstatgrab.org/⟩
Visit the GSP FreeBSD Man Page Interface. |