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

Method setCachingLabels

Engine/Settings.cpp:1446–1455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1444} // initializeKnobs
1445
1446void
1447Settings::setCachingLabels()
1448{
1449 int maxTotalRam = _maxRAMPercent->getValue();
1450 U64 systemTotalRam = getSystemTotalRAM();
1451 U64 maxRAM = (U64)( ( (double)maxTotalRam / 100. ) * systemTotalRam );
1452
1453 _maxRAMLabel->setValue( printAsRAM(maxRAM).toStdString() );
1454 _unreachableRAMLabel->setValue( printAsRAM( (double)systemTotalRam * ( (double)_unreachableRAMPercent->getValue() / 100. ) ).toStdString() );
1455}
1456
1457void
1458Settings::setDefaultValues()

Callers

nothing calls this directly

Calls 5

getSystemTotalRAMFunction · 0.85
printAsRAMFunction · 0.85
toStdStringMethod · 0.80
getValueMethod · 0.45
setValueMethod · 0.45

Tested by

no test coverage detected