From a1d46a278bc3f2b11e110b20c98eb1ecb6ad000f Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Sun, 10 Sep 2017 21:04:40 +0800 Subject: [PATCH 1/2] Change default value of m_diskCacheSize. New default is 64 MB. --- src/base/bittorrent/session.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/bittorrent/session.cpp b/src/base/bittorrent/session.cpp index 8759e3501..c0587686d 100644 --- a/src/base/bittorrent/session.cpp +++ b/src/base/bittorrent/session.cpp @@ -274,7 +274,7 @@ Session::Session(QObject *parent) , m_isTrackerFilteringEnabled(BITTORRENT_SESSION_KEY("TrackerFilteringEnabled"), false) , m_IPFilterFile(BITTORRENT_SESSION_KEY("IPFilter")) , m_announceToAllTrackers(BITTORRENT_SESSION_KEY("AnnounceToAllTrackers"), true) - , m_diskCacheSize(BITTORRENT_SESSION_KEY("DiskCacheSize"), 0) + , m_diskCacheSize(BITTORRENT_SESSION_KEY("DiskCacheSize"), 64) , m_diskCacheTTL(BITTORRENT_SESSION_KEY("DiskCacheTTL"), 60) , m_useOSCache(BITTORRENT_SESSION_KEY("UseOSCache"), true) , m_guidedReadCacheEnabled(BITTORRENT_SESSION_KEY("GuidedReadCache"), true) From a341b793e43b81ac6f15aa4a627e3bac77723a5d Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Mon, 11 Sep 2017 13:31:57 +0800 Subject: [PATCH 2/2] Rename option The previous "Disk write cache size" is not accurate since it is also being used for read cache, so rename it to "Disk cache". --- src/gui/advancedsettings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/advancedsettings.cpp b/src/gui/advancedsettings.cpp index aa6963640..0055f0654 100644 --- a/src/gui/advancedsettings.cpp +++ b/src/gui/advancedsettings.cpp @@ -294,7 +294,7 @@ void AdvancedSettings::loadAdvancedSettings() #endif spin_cache.setValue(session->diskCacheSize()); updateCacheSpinSuffix(spin_cache.value()); - addRow(DISK_CACHE, tr("Disk write cache size"), &spin_cache); + addRow(DISK_CACHE, tr("Disk cache"), &spin_cache); // Disk cache expiry spin_cache_ttl.setMinimum(15); spin_cache_ttl.setMaximum(600);