[hackers] [slstatus] Remove fmt from load_avgs for consistency || Aaron Marcher
commit fc0dde5a60a066b8506834f508aebf0ea5055990
Author: Aaron Marcher <me_AT_drkhsh.at>
AuthorDate: Mon May 21 14:14:45 2018 +0200
Commit: Aaron Marcher <me_AT_drkhsh.at>
CommitDate: Mon May 21 14:14:45 2018 +0200
Remove fmt from load_avgs for consistency
In a later commit something like that will be enabled for every
component
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
_AT_@ -5,7 +5,7 @@
#include "../util.h"
const char *
-load_avg(const char *fmt)
+load_avg(void)
{
double avgs[3];
_AT_@ -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]);
}
diff --git a/config.def.h b/config.def.h
index 49ea282..f144393 100644
--- a/config.def.h
+++ b/config.def.h
_AT_@ -32,8 +32,7 @@ static const char unknown_str[] = "n/a";
* 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
Received on Mon May 21 2018 - 14:15:38 CEST
This archive was generated by hypermail 2.3.0
: Mon May 21 2018 - 14:24:26 CEST