In a later commit something like that will be enabled for every
component
#include "../util.h"
const char *
-load_avg(const char *fmt)
+load_avg(void)
{
double avgs[3];
return NULL;
}
- return bprintf(fmt, avgs[0], avgs[1], avgs[2]);
+ return bprintf("%.2f %.2f %.2f", avgs[0], avgs[1], avgs[2]);
}
* ipv6 IPv6 address interface name (eth0)
* kernel_release `uname -r` NULL
* keyboard_indicators caps/num lock indicators NULL
- * load_avg load average format string
- * (%.2f %.2f %.2f)
+ * load_avg load average NULL
* netspeed_rx receive network speed interface name (wlan0)
* netspeed_tx transfer network speed interface name (wlan0)
* num_files number of files in a directory path