1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-09 06:17:58 +00:00

Fix possible memory problem on Windows

This commit is contained in:
Christophe Dumez 2011-06-07 18:48:43 +00:00
parent 83317ca2d0
commit 4795e9980b

View File

@ -403,8 +403,8 @@ void QBtSession::configureSession() {
#ifdef Q_WS_WIN
#if LIBTORRENT_VERSION_MINOR > 14
// Fixes huge memory usage on Windows 7 (especially when checking files)
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;
sessionSettings.disk_io_write_mode = session_settings::disable_os_cache;
sessionSettings.disk_io_read_mode = session_settings::disable_os_cache;
#endif
#endif
// Queueing System