| 369 | } |
| 370 | |
| 371 | static 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 | |
| 388 | static void load_update_stats_fn (void *data) |
| 389 | { |
no outgoing calls
no test coverage detected