1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-16 18:15:17 +00:00

properly format PIDs longer than 5 digits

This commit is contained in:
ndwarshuis 2019-10-16 19:44:39 -04:00 committed by Brenden Matthews
parent 2f41fb566c
commit 8978b13ff9

View File

@ -538,7 +538,7 @@ static void print_top_user(struct text_object *obj, char *p,
}
PRINT_TOP_GENERATOR(cpu, (unsigned int)7, "%6.2f", amount)
PRINT_TOP_GENERATOR(pid, (unsigned int)6, "%5i", pid)
PRINT_TOP_GENERATOR(pid, (unsigned int)8, "%7i", pid)
PRINT_TOP_GENERATOR(uid, (unsigned int)6, "%5i", uid)
PRINT_TOP_HR_GENERATOR(mem_res, rss, 1)
PRINT_TOP_HR_GENERATOR(mem_vsize, vsize, 1)