MCPcopy Create free account
hub / github.com/corosync/corosync / min15_loadavg_get

Function min15_loadavg_get

exec/mon.c:371–386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

369}
370
371static double min15_loadavg_get(void)
372{
373 sg_load_stats *load_stats;
374
375#ifdef HAVE_LIBSTATGRAB_GE_090
376 load_stats = sg_get_load_stats (NULL);
377#else
378 load_stats = sg_get_load_stats ();
379#endif
380 if (load_stats == NULL) {
381 log_printf (LOGSYS_LEVEL_ERROR, "Unable to get load stats: %s",
382 sg_str_error (sg_get_error()));
383 return -1;
384 }
385 return load_stats->min15;
386}
387
388static void load_update_stats_fn (void *data)
389{

Callers 1

load_update_stats_fnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected