Use allocation granularity as the 'page_size' in /proc/<pid>/status as well, for consistency with /proc/<pid>/statm
This commit is contained in:
parent
6477a48cd1
commit
8a32c24a7b
|
@ -1208,7 +1208,7 @@ format_process_status (void *data, char *&destbuf)
|
||||||
if (!get_mem_values (p->dwProcessId, &vmsize, &vmrss, &vmtext, &vmdata,
|
if (!get_mem_values (p->dwProcessId, &vmsize, &vmrss, &vmtext, &vmdata,
|
||||||
&vmlib, &vmshare))
|
&vmlib, &vmshare))
|
||||||
return 0;
|
return 0;
|
||||||
unsigned page_size = wincap.page_size ();
|
unsigned page_size = wincap.allocation_granularity ();
|
||||||
vmsize *= page_size; vmrss *= page_size; vmdata *= page_size;
|
vmsize *= page_size; vmrss *= page_size; vmdata *= page_size;
|
||||||
vmtext *= page_size; vmlib *= page_size;
|
vmtext *= page_size; vmlib *= page_size;
|
||||||
/* The real uid value for *this* process is stored at cygheap->user.real_uid
|
/* The real uid value for *this* process is stored at cygheap->user.real_uid
|
||||||
|
|
Loading…
Reference in New Issue