int beostat_get_MHz (int node, float *MHz);
int beostat_get_stat_cpu (int node, int cpu, struct beostat_stat_cpu *stat_cpu);
struct beostat_stat_cpu
{
long user;
long system;
long nice;
long idle;
};
int beostat_get_time (int node, struct node_time *node_time);
struct node_time
{
time_t time;
};
int beostat_get_meminfo (int node, struct beostat_meminfo *meminfo);
struct beostat_memusage
{
long used;
long free;
};
struct beostat_meminfo
{
struct beostat_memusage mem;
struct beostat_memusage swap;
long shared;
long buffers;
long cached;
};
int beostat_get_loadavg (int node, struct beostat_loadavg *loadavg);
struct beostat_loadavg
{
float load[3];
int num_active_procs;
int total_procs;
int last_pid;
}; |