1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-02-02 09:55:55 +00:00

Minor optimization in qbtsession.

This commit is contained in:
sledgehammer999 2012-12-01 14:08:46 +02:00
parent b97c6cadee
commit bd89dca0af

View File

@ -403,7 +403,7 @@ void QBtSession::configureSession() {
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 = cache_size ? cache_size * 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