mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-22 17:26:21 +03:00
Fix compilation with libtorrent v0.14
This commit is contained in:
parent
fa4eda9c87
commit
efa1f4ebb4
1 changed files with 2 additions and 0 deletions
|
@ -389,8 +389,10 @@ void QBtSession::configureSession() {
|
|||
sessionSettings.cache_size = pref.diskCacheSize()*64;
|
||||
qDebug() << "Using a disk cache size of" << pref.diskCacheSize() << "MiB";
|
||||
// Disable OS cache to avoid memory problems (uTorrent behavior)
|
||||
#if LIBTORRENT_VERSION_MINOR > 14
|
||||
sessionSettings.disk_io_write_mode = session_settings::disable_os_cache_for_aligned_files;
|
||||
sessionSettings.disk_io_read_mode = session_settings::disable_os_cache_for_aligned_files;
|
||||
#endif
|
||||
// Queueing System
|
||||
if(pref.isQueueingSystemEnabled()) {
|
||||
sessionSettings.active_downloads = pref.getMaxActiveDownloads();
|
||||
|
|
Loading…
Reference in a new issue