mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 07:18:08 +00:00
Partially revert commit aeb5fa. See issue #258.
This commit is contained in:
parent
1809de7f1a
commit
1a965cc0bd
@ -945,7 +945,7 @@ public:
|
||||
}
|
||||
|
||||
uint diskCacheSize() const {
|
||||
return value(QString::fromUtf8("Preferences/Downloads/DiskWriteCacheSize"), 0).toUInt();
|
||||
return value(QString::fromUtf8("Preferences/Downloads/DiskWriteCacheSize"), 16).toUInt();
|
||||
}
|
||||
|
||||
void setDiskCacheSize(uint size) {
|
||||
|
@ -402,8 +402,7 @@ void QBtSession::configureSession() {
|
||||
sessionSettings.announce_to_all_trackers = announce_to_all;
|
||||
sessionSettings.announce_to_all_tiers = announce_to_all;
|
||||
sessionSettings.auto_scrape_min_interval = 900; // 15 minutes
|
||||
int cache_size = pref.diskCacheSize();
|
||||
sessionSettings.cache_size = cache_size ? pref.diskCacheSize() * 64 : -1;
|
||||
sessionSettings.cache_size = pref.diskCacheSize() ? pref.diskCacheSize() * 64 : -1;
|
||||
qDebug() << "Using a disk cache size of" << pref.diskCacheSize() << "MiB";
|
||||
// Disable OS cache to avoid memory problems (uTorrent behavior)
|
||||
#ifdef Q_WS_WIN
|
||||
|
Loading…
Reference in New Issue
Block a user