mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-17 18:45:10 +00:00
Fix PID display, patch #1753934. thanks sohalt.
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@885 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
parent
6c95750cc6
commit
c559001bab
@ -1,5 +1,8 @@
|
|||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
|
2007-07-15
|
||||||
|
* Fix PID display, patch #1753934. thanks to sohalt.
|
||||||
|
|
||||||
2007-06-21
|
2007-06-21
|
||||||
* Right-justify top/top_mem vars (pid/cpu/mem} so they align on the decimal.
|
* Right-justify top/top_mem vars (pid/cpu/mem} so they align on the decimal.
|
||||||
|
|
||||||
|
@ -4949,7 +4949,7 @@ static void generate_text_internal(char *p, int p_max_size, struct text_object *
|
|||||||
} else if (obj->data.top.type == TOP_PID
|
} else if (obj->data.top.type == TOP_PID
|
||||||
&& obj->data.top.num >= 0
|
&& obj->data.top.num >= 0
|
||||||
&& obj->data.top.num < 10) {
|
&& obj->data.top.num < 10) {
|
||||||
snprintf(p, 8, "%8i",
|
snprintf(p, 8, "%7i",
|
||||||
cur->cpu[obj->data.top.
|
cur->cpu[obj->data.top.
|
||||||
num]->pid);
|
num]->pid);
|
||||||
} else if (obj->data.top.type == TOP_MEM
|
} else if (obj->data.top.type == TOP_MEM
|
||||||
@ -4976,7 +4976,7 @@ static void generate_text_internal(char *p, int p_max_size, struct text_object *
|
|||||||
} else if (obj->data.top.type == TOP_PID
|
} else if (obj->data.top.type == TOP_PID
|
||||||
&& obj->data.top.num >= 0
|
&& obj->data.top.num >= 0
|
||||||
&& obj->data.top.num < 10) {
|
&& obj->data.top.num < 10) {
|
||||||
snprintf(p, 8, "%8i",
|
snprintf(p, 8, "%7i",
|
||||||
cur->memu[obj->data.top.
|
cur->memu[obj->data.top.
|
||||||
num]->pid);
|
num]->pid);
|
||||||
} else if (obj->data.top.type == TOP_MEM
|
} else if (obj->data.top.type == TOP_MEM
|
||||||
|
Loading…
Reference in New Issue
Block a user