mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-23 21:14:33 +00:00
- Display ratio in Web UI
This commit is contained in:
parent
e187426dd5
commit
87f93a7a1d
@ -123,6 +123,7 @@ void EventManager::modifiedTorrent(QTorrentHandle h)
|
|||||||
leechs += " ("+QString::number(h.num_incomplete())+")";
|
leechs += " ("+QString::number(h.num_incomplete())+")";
|
||||||
event["num_leechs"] = QVariant(leechs);
|
event["num_leechs"] = QVariant(leechs);
|
||||||
event["seed"] = QVariant(h.is_seed());
|
event["seed"] = QVariant(h.is_seed());
|
||||||
|
event["ratio"] = QVariant(QString::number(BTSession->getRealRatio(hash), 'f', 1));
|
||||||
event["hash"] = QVariant(hash);
|
event["hash"] = QVariant(hash);
|
||||||
event_list[hash] = event;
|
event_list[hash] = event;
|
||||||
}
|
}
|
||||||
|
@ -96,6 +96,7 @@
|
|||||||
<th>Down Speed</th>
|
<th>Down Speed</th>
|
||||||
<th>Up Speed</th>
|
<th>Up Speed</th>
|
||||||
<th>ETA</th>
|
<th>ETA</th>
|
||||||
|
<th>Ratio</th>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
@ -81,7 +81,7 @@ window.addEvent('domready', function(){
|
|||||||
events.each(function(event){
|
events.each(function(event){
|
||||||
events_hashes[events_hashes.length] = event.hash;
|
events_hashes[events_hashes.length] = event.hash;
|
||||||
var row = new Array();
|
var row = new Array();
|
||||||
row.length = 9;
|
row.length = 10;
|
||||||
row[0] = stateToImg(event.state);
|
row[0] = stateToImg(event.state);
|
||||||
row[1] = event.name;
|
row[1] = event.name;
|
||||||
row[2] = event.priority
|
row[2] = event.priority
|
||||||
@ -92,6 +92,7 @@ window.addEvent('domready', function(){
|
|||||||
row[7] = event.dlspeed;
|
row[7] = event.dlspeed;
|
||||||
row[8] = event.upspeed;
|
row[8] = event.upspeed;
|
||||||
row[9] = event.eta;
|
row[9] = event.eta;
|
||||||
|
row[10] = event.ratio;
|
||||||
if(row[2] != -1)
|
if(row[2] != -1)
|
||||||
queueing_enabled = true;
|
queueing_enabled = true;
|
||||||
if(!torrent_hashes.contains(event.hash)) {
|
if(!torrent_hashes.contains(event.hash)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user