From 8a32c24a7bdb0f3d80daa8f267cc63d15edcf771 Mon Sep 17 00:00:00 2001 From: "Erik M. Bray" Date: Wed, 16 Nov 2016 15:50:34 +0100 Subject: [PATCH] Use allocation granularity as the 'page_size' in /proc//status as well, for consistency with /proc//statm --- winsup/cygwin/fhandler_process.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.43.5