]> sourceware.org Git - newlib-cygwin.git/commitdiff
Use allocation granularity as the 'page_size' in /proc/<pid>/status as well, for...
authorErik M. Bray <erik.bray@lri.fr>
Wed, 16 Nov 2016 14:50:34 +0000 (15:50 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Wed, 16 Nov 2016 14:58:15 +0000 (15:58 +0100)
winsup/cygwin/fhandler_process.cc

index c5698c3ebc89571e93b58ce321cc92ba27dc82e5..5f530a207355d0819e2e95d1ff3ef368ab590cdd 100644 (file)
@@ -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
This page took 0.031592 seconds and 5 git commands to generate.