1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-25 12:10:03 +00:00

top: do not print ${top mem 1} as inf if $mem not used

This commit is contained in:
bi4k8 2023-04-26 19:23:45 +00:00 committed by bi4k8
parent b3766febdb
commit 7fa3d113da

View File

@ -388,6 +388,11 @@ static void process_find_top(struct process **cpu, struct process **mem,
}
int update_top() {
// if nothing else has ever set up info, we need to update it here, because
// info.memmax is used to print percentages in `print_top_mem`
if (info.memmax == 0) {
update_meminfo();
}
process_find_top(info.cpu, info.memu, info.time
#ifdef BUILD_IOSTATS
,