mirror of https://github.com/xzeldon/htop.git
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:"))
|
if (String_startsWith(readptr, "/memfd:"))
|
||||||
continue;
|
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")) {
|
if (strstr(readptr, " (deleted)\n")) {
|
||||||
proc->usesDeletedLib = true;
|
proc->usesDeletedLib = true;
|
||||||
if (!calcSize)
|
if (!calcSize)
|
||||||
|
|
Loading…
Reference in New Issue