mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=4652
This commit is contained in:
parent
1ec6fdd236
commit
d75f601efe
|
@ -626,8 +626,7 @@ static int mem_usage(unsigned long& vm_kb, unsigned long& rs_kb) {
|
||||||
OSVERSIONINFO osvi;
|
OSVERSIONINFO osvi;
|
||||||
osvi.dwOSVersionInfoSize = sizeof(osvi);
|
osvi.dwOSVersionInfoSize = sizeof(osvi);
|
||||||
GetVersionEx( &osvi );
|
GetVersionEx( &osvi );
|
||||||
if (osvi.dwPlatformId == VER_PLATFORM_WIN32_NT)
|
if (osvi.dwPlatformId == VER_PLATFORM_WIN32_NT) {
|
||||||
{
|
|
||||||
SIZE_T lpMinimumWorkingSetSize;
|
SIZE_T lpMinimumWorkingSetSize;
|
||||||
SIZE_T lpMaximumWorkingSetSize;
|
SIZE_T lpMaximumWorkingSetSize;
|
||||||
|
|
||||||
|
@ -640,12 +639,9 @@ static int mem_usage(unsigned long& vm_kb, unsigned long& rs_kb) {
|
||||||
// return value is in bytes, we need to return kb
|
// return value is in bytes, we need to return kb
|
||||||
vm_kb = lpMinimumWorkingSetSize / 1024;
|
vm_kb = lpMinimumWorkingSetSize / 1024;
|
||||||
rs_kb = lpMaximumWorkingSetSize / 1024;
|
rs_kb = lpMaximumWorkingSetSize / 1024;
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
{
|
|
||||||
return ERR_NOT_IMPLEMENTED;
|
return ERR_NOT_IMPLEMENTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue