mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
- Fix JSON communication between qBittorrent and Web UI
This commit is contained in:
parent
d0037d90f4
commit
b5a9fe71e1
3 changed files with 30 additions and 29 deletions
|
@ -354,7 +354,7 @@ void EventManager::modifiedTorrent(QTorrentHandle h)
|
|||
}
|
||||
event["name"] = QVariant(h.name());
|
||||
event["size"] = QVariant(misc::friendlyUnit(h.actual_size()));
|
||||
event["progress"] = QVariant(h.progress());
|
||||
event["progress"] = QVariant((double)h.progress());
|
||||
event["dlspeed"] = QVariant(tr("%1/s", "e.g. 120 KiB/s").arg(misc::friendlyUnit(h.download_payload_rate())));
|
||||
if(BTSession->isQueueingEnabled()) {
|
||||
if(h.queue_position() >= 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue