X-Git-Url: https://git.xinqibao.xyz/slstatus.git/blobdiff_plain/61e44e894890c1521a01148fbf969cbd4dbb4cae..7246dc4381c6c95454672a5c1aff65a02d6d3747:/load_avg.c diff --git a/load_avg.c b/load_avg.c deleted file mode 100644 index ad22ae4..0000000 --- a/load_avg.c +++ /dev/null @@ -1,18 +0,0 @@ -/* See LICENSE file for copyright and license details. */ -#include -#include - -#include "util.h" - -const char * -load_avg(const char *fmt) -{ - double avgs[3]; - - if (getloadavg(avgs, 3) < 0) { - warnx("Failed to get the load avg"); - return NULL; - } - - return bprintf(fmt, avgs[0], avgs[1], avgs[2]); -}