Browse Source

WebUI: Don't cache transfer info values

In this way speed limits are instantly updated.
adaptive-webui-19844
Gabriele 10 years ago
parent
commit
b3a537f575
  1. 2
      src/webui/btjson.cpp

2
src/webui/btjson.cpp

@ -449,7 +449,7 @@ QByteArray btjson::getFilesForTorrent(const QString& hash) @@ -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;

Loading…
Cancel
Save