mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 01:33:07 -07:00
FEATURE: Disk cache size can be set from preferences
This commit is contained in:
parent
09ef3073a1
commit
db5402385a
5 changed files with 367 additions and 323 deletions
|
@ -321,6 +321,8 @@ void Bittorrent::configureSession() {
|
|||
#endif
|
||||
// To keep same behavior as in qBittorrent v1.2.0
|
||||
sessionSettings.rate_limit_ip_overhead = false;
|
||||
sessionSettings.cache_size = Preferences::diskCacheSize()*64;
|
||||
addConsoleMessage(tr("Using a disk cache size of %1 MiB").arg(Preferences::diskCacheSize()));
|
||||
// Queueing System
|
||||
if(Preferences::isQueueingSystemEnabled()) {
|
||||
sessionSettings.active_downloads = Preferences::getMaxActiveDownloads();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue