mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -06:00
WebUI: Don't cache transfer info values
In this way speed limits are instantly updated.
This commit is contained in:
@@ -449,7 +449,7 @@ QByteArray btjson::getFilesForTorrent(const QString& hash)
|
||||
*/
|
||||
QByteArray btjson::getTransferInfo()
|
||||
{
|
||||
CACHED_VARIABLE(QVariantMap, info, CACHE_DURATION_MS);
|
||||
QVariantMap info;
|
||||
session_status sessionStatus = QBtSession::instance()->getSessionStatus();
|
||||
session_settings sessionSettings = QBtSession::instance()->getSession()->settings();
|
||||
info[KEY_TRANSFER_DLSPEED] = sessionStatus.payload_download_rate;
|
||||
|
||||
Reference in New Issue
Block a user