mirror of
https://github.com/a0rtega/pafish
synced 2024-11-22 06:11:18 +03:00
Changed check from available to total physical memory.
This commit is contained in:
parent
01ac4d2153
commit
7c591a0b2a
@ -156,6 +156,6 @@ int gensandbox_less_than_onegb() {
|
|||||||
statex.dwLength = sizeof (statex);
|
statex.dwLength = sizeof (statex);
|
||||||
|
|
||||||
GlobalMemoryStatusEx(&statex);
|
GlobalMemoryStatusEx(&statex);
|
||||||
return (statex.ullAvailPhys/1024) < 1048576 ? TRUE : FALSE;
|
return (statex.ullTotalPhys/1024) < 1048576 ? TRUE : FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user