- Fix JSON communication between qBittorrent and Web UI

This commit is contained in:
Christophe Dumez 2009-12-29 20:09:46 +00:00
parent d0037d90f4
commit b5a9fe71e1
3 changed files with 30 additions and 29 deletions

View file

@ -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)