FEATURE: Disk cache size can be set from preferences

This commit is contained in:
Christophe Dumez 2009-12-17 17:37:54 +00:00
parent 09ef3073a1
commit db5402385a
5 changed files with 367 additions and 323 deletions

View file

@ -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();