Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik M. Bray <erik.bray@lri.fr>2016-11-16 17:50:34 +0300
committerCorinna Vinschen <corinna@vinschen.de>2016-11-16 17:58:15 +0300
commit8a32c24a7bdb0f3d80daa8f267cc63d15edcf771 (patch)
tree2d827cc060e7afc0c4a61a0bab3bca45919ab3a3
parent6477a48cd170b749d6eedad85944f77995edc0fb (diff)
Use allocation granularity as the 'page_size' in /proc/<pid>/status as well, for consistency with /proc/<pid>/statm
-rw-r--r--winsup/cygwin/fhandler_process.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_process.cc b/winsup/cygwin/fhandler_process.cc
index c5698c3eb..5f530a207 100644
--- a/winsup/cygwin/fhandler_process.cc
+++ b/winsup/cygwin/fhandler_process.cc
@@ -1208,7 +1208,7 @@ format_process_status (void *data, char *&destbuf)
if (!get_mem_values (p->dwProcessId, &vmsize, &vmrss, &vmtext, &vmdata,
&vmlib, &vmshare))
return 0;
- unsigned page_size = wincap.page_size ();
+ unsigned page_size = wincap.allocation_granularity ();
vmsize *= page_size; vmrss *= page_size; vmdata *= page_size;
vmtext *= page_size; vmlib *= page_size;
/* The real uid value for *this* process is stored at cygheap->user.real_uid