summaryrefslogtreecommitdiff
path: root/components/load_avg.c
diff options
context:
space:
mode:
authorAaron Marcher <me@drkhsh.at>2018-05-21 14:14:45 +0200
committerAaron Marcher <me@drkhsh.at>2018-05-21 14:14:45 +0200
commitfc0dde5a60a066b8506834f508aebf0ea5055990 (patch)
tree8857cfc523198218e19047d9d6a18d0381885193 /components/load_avg.c
parentfa8b939990ed0648f99b0cbeba4efed807160db3 (diff)
Remove fmt from load_avgs for consistency
In a later commit something like that will be enabled for every component
Diffstat (limited to 'components/load_avg.c')
-rw-r--r--components/load_avg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/load_avg.c b/components/load_avg.c
index ea7bc2c..5c2e252 100644
--- a/components/load_avg.c
+++ b/components/load_avg.c
@@ -5,7 +5,7 @@
#include "../util.h"
const char *
-load_avg(const char *fmt)
+load_avg(void)
{
double avgs[3];
@@ -14,5 +14,5 @@ load_avg(const char *fmt)
return NULL;
}
- return bprintf(fmt, avgs[0], avgs[1], avgs[2]);
+ return bprintf("%.2f %.2f %.2f", avgs[0], avgs[1], avgs[2]);
}