MCPcopy Create free account
hub / github.com/IENT/YUView / getCacheSizeInMB

Method getCacheSizeInMB

YUViewLib/src/ui/SettingsDialog.cpp:178–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178unsigned int SettingsDialog::getCacheSizeInMB() const
179{
180 if (!ui.groupBoxCaching->isChecked())
181 return 0;
182 return std::max(functions::systemMemorySizeInMB() * (ui.sliderThreshold->value() + 1) / 100,
183 MIN_CACHE_SIZE_IN_MB);
184}
185
186void SettingsDialog::on_checkBoxNrThreads_stateChanged(int newState)
187{

Callers

nothing calls this directly

Calls 1

systemMemorySizeInMBFunction · 0.85

Tested by

no test coverage detected