mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-25 20:11:11 +00:00
fix padding of $processes
Padding to 4 digits allows for max 9999 processes, which should really be more than enough for systems running conky. ;)
This commit is contained in:
parent
e6a9c02d11
commit
72e217fae2
@ -2,6 +2,7 @@
|
||||
* Added if_updatenr
|
||||
* Rewrite human_readable() to minimise amount of padding
|
||||
* Fix padding in temp_print()
|
||||
* Fix padding of $processes and $running_processes
|
||||
|
||||
2009-02-17
|
||||
* Added $battery_short patch, sf.net id #2300911 (thanks Swoog)
|
||||
|
@ -4119,10 +4119,10 @@ static void generate_text_internal(char *p, int p_max_size,
|
||||
new_outline(p, obj->data.l);
|
||||
}
|
||||
OBJ(processes) {
|
||||
spaced_print(p, p_max_size, "%hu", 5, cur->procs);
|
||||
spaced_print(p, p_max_size, "%hu", 4, cur->procs);
|
||||
}
|
||||
OBJ(running_processes) {
|
||||
spaced_print(p, p_max_size, "%hu", 3, cur->run_procs);
|
||||
spaced_print(p, p_max_size, "%hu", 4, cur->run_procs);
|
||||
}
|
||||
OBJ(text) {
|
||||
snprintf(p, p_max_size, "%s", obj->data.s);
|
||||
|
Loading…
Reference in New Issue
Block a user