* fhandler_process.cc (format_process_stat): use PagefileUsage
instead of VirtualSize. (get_mem_values): Ditto.
This commit is contained in:
parent
a82fd8b94e
commit
c295ce6f6e
|
@ -1,3 +1,9 @@
|
|||
2003-05-24 Joe Buehler <jhpb@draco.hekimian.com>
|
||||
|
||||
* fhandler_process.cc (format_process_stat): use PagefileUsage
|
||||
instead of VirtualSize.
|
||||
(get_mem_values): Ditto.
|
||||
|
||||
2003-05-21 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* shared_info.h: Match shared_name declaration with below change.
|
||||
|
|
|
@ -475,7 +475,7 @@ format_process_stat (_pinfo *p, char *destbuf, size_t maxsize)
|
|||
start_time = (spt.KernelTime.QuadPart + spt.UserTime.QuadPart) * HZ / 10000000ULL;
|
||||
priority = pbi.BasePriority;
|
||||
unsigned page_size = getpagesize ();
|
||||
vmsize = vmc.VirtualSize;
|
||||
vmsize = vmc.PagefileUsage;
|
||||
vmrss = vmc.WorkingSetSize / page_size;
|
||||
vmmaxrss = ql.MaximumWorkingSetSize / page_size;
|
||||
}
|
||||
|
@ -740,7 +740,7 @@ get_mem_values (DWORD dwProcessId, unsigned long *vmsize, unsigned long *vmrss,
|
|||
res = false;
|
||||
goto out;
|
||||
}
|
||||
*vmsize = vmc.VirtualSize / page_size;
|
||||
*vmsize = vmc.PagefileUsage / page_size;
|
||||
out:
|
||||
delete [] p;
|
||||
CloseHandle (hProcess);
|
||||
|
|
Loading…
Reference in New Issue