Remove fmt from load_avgs for consistency
In a later commit something like that will be enabled for every component
This commit is contained in:
parent
fa8b939990
commit
fc0dde5a60
2 changed files with 3 additions and 4 deletions
|
@ -5,7 +5,7 @@
|
||||||
#include "../util.h"
|
#include "../util.h"
|
||||||
|
|
||||||
const char *
|
const char *
|
||||||
load_avg(const char *fmt)
|
load_avg(void)
|
||||||
{
|
{
|
||||||
double avgs[3];
|
double avgs[3];
|
||||||
|
|
||||||
|
@ -14,5 +14,5 @@ load_avg(const char *fmt)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
return bprintf(fmt, avgs[0], avgs[1], avgs[2]);
|
return bprintf("%.2f %.2f %.2f", avgs[0], avgs[1], avgs[2]);
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,8 +32,7 @@ static const char unknown_str[] = "n/a";
|
||||||
* ipv6 IPv6 address interface name (eth0)
|
* ipv6 IPv6 address interface name (eth0)
|
||||||
* kernel_release `uname -r` NULL
|
* kernel_release `uname -r` NULL
|
||||||
* keyboard_indicators caps/num lock indicators NULL
|
* keyboard_indicators caps/num lock indicators NULL
|
||||||
* load_avg load average format string
|
* load_avg load average NULL
|
||||||
* (%.2f %.2f %.2f)
|
|
||||||
* netspeed_rx receive network speed interface name (wlan0)
|
* netspeed_rx receive network speed interface name (wlan0)
|
||||||
* netspeed_tx transfer network speed interface name (wlan0)
|
* netspeed_tx transfer network speed interface name (wlan0)
|
||||||
* num_files number of files in a directory path
|
* num_files number of files in a directory path
|
||||||
|
|
Loading…
Reference in a new issue