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:
parent
b3766febdb
commit
7fa3d113da
@ -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
|
||||
,
|
||||
|
Loading…
Reference in New Issue
Block a user