diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2003-05-25 00:14:19 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2003-05-25 00:14:19 +0400 |
commit | c295ce6f6e18cac30b0e5313cecad9fdab1809c6 (patch) | |
tree | 881577f86b86ab46f9fb61b14d656148654435c7 /winsup/cygwin/fhandler_process.cc | |
parent | a82fd8b94e23f2e12fb634ac6838a9eb08d8ed94 (diff) |
* fhandler_process.cc (format_process_stat): use PagefileUsage
instead of VirtualSize.
(get_mem_values): Ditto.
Diffstat (limited to 'winsup/cygwin/fhandler_process.cc')
-rw-r--r-- | winsup/cygwin/fhandler_process.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/fhandler_process.cc b/winsup/cygwin/fhandler_process.cc index d9b311a72..f8631b41a 100644 --- a/winsup/cygwin/fhandler_process.cc +++ b/winsup/cygwin/fhandler_process.cc @@ -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); |