mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-21 05:43:32 -07:00
Minor optimization in qbtsession.
This commit is contained in:
parent
7532fcfd3c
commit
19846758d8
1 changed files with 1 additions and 1 deletions
|
@ -398,7 +398,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue