MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / getSystemTotalRAM_conditionnally

Function getSystemTotalRAM_conditionnally

Engine/MemoryInfo.cpp:154–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154U64
155getSystemTotalRAM_conditionnally()
156{
157 if ( isApplication32Bits() ) {
158 return std::min( (U64)0x100000000ULL, getSystemTotalRAM() );
159 } else {
160 return getSystemTotalRAM();
161 }
162}
163
164// prints RAM value as KB, MB or GB
165QString

Calls 2

isApplication32BitsFunction · 0.85
getSystemTotalRAMFunction · 0.85

Tested by

no test coverage detected