mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-06 13:11:25 -07:00
Add option for hashing_threads, use 10 asyc IO threads
Add option for setting lt::settings_pack::hashing_threads introduced by libtorrent 2.0. It has no effect for earlier libtorrent versions. Use 10 async IO threads, as per #11461. Closes #11461.
This commit is contained in:
parent
726704a7ed
commit
b4bfdd6f7a
6 changed files with 56 additions and 1 deletions
|
@ -277,6 +277,8 @@ void AppController::preferencesAction()
|
|||
// libtorrent preferences
|
||||
// Async IO threads
|
||||
data["async_io_threads"] = session->asyncIOThreads();
|
||||
// Hashing threads
|
||||
data["hashing_threads"] = session->hashingThreads();
|
||||
// File pool size
|
||||
data["file_pool_size"] = session->filePoolSize();
|
||||
// Checking memory usage
|
||||
|
@ -701,6 +703,9 @@ void AppController::setPreferencesAction()
|
|||
// Async IO threads
|
||||
if (hasKey("async_io_threads"))
|
||||
session->setAsyncIOThreads(it.value().toInt());
|
||||
// Hashing threads
|
||||
if (hasKey("hashing_threads"))
|
||||
session->setHashingThreads(it.value().toInt());
|
||||
// File pool size
|
||||
if (hasKey("file_pool_size"))
|
||||
session->setFilePoolSize(it.value().toInt());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue