mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-26 19:26:59 +03:00
- Fix progress display in Web UI
This commit is contained in:
parent
a83744289f
commit
8650b20904
1 changed files with 2 additions and 1 deletions
|
@ -59,6 +59,7 @@ window.addEvent('domready', function(){
|
|||
}
|
||||
return '';
|
||||
};
|
||||
var round1 = function(val){return Math.round(val*10)/10};
|
||||
var ajaxfn = function(){
|
||||
var queueing_enabled = false;
|
||||
var url = 'json/events';
|
||||
|
@ -86,7 +87,7 @@ window.addEvent('domready', function(){
|
|||
row[1] = event.name;
|
||||
row[2] = event.priority
|
||||
row[3] = event.size;
|
||||
row[4] = event.progress*100;
|
||||
row[4] = round1(event.progress*100);
|
||||
row[5] = event.num_seeds;
|
||||
row[6] = event.num_leechs;
|
||||
row[7] = event.dlspeed;
|
||||
|
|
Loading…
Reference in a new issue