Use allocation granularity as the 'page_size' in /proc/<pid>/status as well, for consistency with /proc/<pid>/statm

This commit is contained in:
Erik M. Bray 2016-11-16 15:50:34 +01:00 committed by Corinna Vinschen
parent 6477a48cd1
commit 8a32c24a7b
1 changed files with 1 additions and 1 deletions

View 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