From c295ce6f6e18cac30b0e5313cecad9fdab1809c6 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Sat, 24 May 2003 20:14:19 +0000 Subject: [PATCH] * fhandler_process.cc (format_process_stat): use PagefileUsage instead of VirtualSize. (get_mem_values): Ditto. --- winsup/cygwin/ChangeLog | 6 ++++++ winsup/cygwin/fhandler_process.cc | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 593508564..0218404c4 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,9 @@ +2003-05-24 Joe Buehler + + * fhandler_process.cc (format_process_stat): use PagefileUsage + instead of VirtualSize. + (get_mem_values): Ditto. + 2003-05-21 Corinna Vinschen * shared_info.h: Match shared_name declaration with below change. 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);