1
0
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:
Philip Kovacs 2007-07-15 18:11:35 +00:00
parent 6c95750cc6
commit c559001bab
2 changed files with 5 additions and 2 deletions

View File

@ -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.

View File

@ -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