From: <pk...@us...> - 2007-07-15 18:11:37
|
Revision: 885 http://svn.sourceforge.net/conky/?rev=885&view=rev Author: pkovacs Date: 2007-07-15 11:11:35 -0700 (Sun, 15 Jul 2007) Log Message: ----------- Fix PID display, patch #1753934. thanks sohalt. Modified Paths: -------------- trunk/conky1/ChangeLog trunk/conky1/src/conky.c Modified: trunk/conky1/ChangeLog =================================================================== --- trunk/conky1/ChangeLog 2007-07-15 18:10:48 UTC (rev 884) +++ trunk/conky1/ChangeLog 2007-07-15 18:11:35 UTC (rev 885) @@ -1,5 +1,8 @@ # $Id$ +2007-07-15 + * Fix PID display, patch #1753934. thanks to sohalt. + 2007-06-21 * Right-justify top/top_mem vars (pid/cpu/mem} so they align on the decimal. Modified: trunk/conky1/src/conky.c =================================================================== --- trunk/conky1/src/conky.c 2007-07-15 18:10:48 UTC (rev 884) +++ trunk/conky1/src/conky.c 2007-07-15 18:11:35 UTC (rev 885) @@ -4949,7 +4949,7 @@ } else if (obj->data.top.type == TOP_PID && obj->data.top.num >= 0 && obj->data.top.num < 10) { - snprintf(p, 8, "%8i", + snprintf(p, 8, "%7i", cur->cpu[obj->data.top. num]->pid); } else if (obj->data.top.type == TOP_MEM @@ -4976,7 +4976,7 @@ } else if (obj->data.top.type == TOP_PID && obj->data.top.num >= 0 && obj->data.top.num < 10) { - snprintf(p, 8, "%8i", + snprintf(p, 8, "%7i", cur->memu[obj->data.top. num]->pid); } else if (obj->data.top.type == TOP_MEM This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |