Browse Source

Merge pull request #10163 from airium/allow-larger-checking-memory-usage

Allow setting larger checking memory usage in GUI
adaptive-webui-19844
Mike Tzou 6 years ago committed by GitHub
parent
commit
81c09d34ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      src/gui/advancedsettings.cpp

7
src/gui/advancedsettings.cpp

@ -324,6 +324,13 @@ void AdvancedSettings::loadAdvancedSettings() @@ -324,6 +324,13 @@ void AdvancedSettings::loadAdvancedSettings()
// Checking Memory Usage
spinBoxCheckingMemUsage.setMinimum(1);
// When build as 32bit binary, set the maximum value lower to prevent crashes.
#if (QT_POINTER_SIZE == 8)
spinBoxCheckingMemUsage.setMaximum(1024);
#else
// Allocate at most 128MiB out of the remaining 512MiB (see the cache part below)
spinBoxCheckingMemUsage.setMaximum(128);
#endif
spinBoxCheckingMemUsage.setValue(session->checkingMemUsage());
spinBoxCheckingMemUsage.setSuffix(tr(" MiB"));
addRow(CHECKING_MEM_USAGE, tr("Outstanding memory when checking torrents"), &spinBoxCheckingMemUsage);

Loading…
Cancel
Save