mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-23 22:55:46 +00:00
Linux: ignore mapped /dev/zero
Virtualbox maps /dev/zero for memory allocation. That results in false positive, so ignore.
This commit is contained in:
parent
dfa62506b7
commit
3f9f52fd29
@ -654,6 +654,11 @@ static void LinuxProcessList_readMaps(LinuxProcess* process, openat_arg_t procFd
|
||||
if (String_startsWith(readptr, "/memfd:"))
|
||||
continue;
|
||||
|
||||
/* Virtualbox maps /dev/zero for memory allocation. That results in
|
||||
* false positive, so ignore. */
|
||||
if (String_eq(readptr, "/dev/zero (deleted)\n"))
|
||||
continue;
|
||||
|
||||
if (strstr(readptr, " (deleted)\n")) {
|
||||
proc->usesDeletedLib = true;
|
||||
if (!calcSize)
|
||||
|
Loading…
Reference in New Issue
Block a user