mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
- Display ratio in Web UI
This commit is contained in:
parent
e187426dd5
commit
87f93a7a1d
3 changed files with 4 additions and 1 deletions
|
@ -123,6 +123,7 @@ void EventManager::modifiedTorrent(QTorrentHandle h)
|
|||
leechs += " ("+QString::number(h.num_incomplete())+")";
|
||||
event["num_leechs"] = QVariant(leechs);
|
||||
event["seed"] = QVariant(h.is_seed());
|
||||
event["ratio"] = QVariant(QString::number(BTSession->getRealRatio(hash), 'f', 1));
|
||||
event["hash"] = QVariant(hash);
|
||||
event_list[hash] = event;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue