1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-12 15:57:57 +00:00

Web UI: Fix Max connections and Time active in transfer information

This commit is contained in:
ngosang 2015-05-17 15:47:37 +02:00
parent c92eb1b17d
commit 8b06f72a94

View File

@ -63,11 +63,10 @@ var loadTorrentData = function() {
$('up_limit').set('html', temp == -1 ? "∞" : temp); $('up_limit').set('html', temp == -1 ? "∞" : temp);
temp = data.dl_limit; temp = data.dl_limit;
$('dl_limit').set('html', temp == -1 ? "∞" : temp); $('dl_limit').set('html', temp == -1 ? "∞" : temp);
temp = friendlyDuration(status.active_time); temp = friendlyDuration(data.time_elapsed) +
if (status.is_seed) " (" + "QBT_TR(Seeded for %1)QBT_TR".replace("%1", friendlyDuration(data.seeding_time)) + ")";
temp += " (" + "QBT_TR(Seeded for %1)QBT_TR".replace("%1", status.seeding_time) + ")";
$('time_elapsed').set('html', temp); $('time_elapsed').set('html', temp);
temp = data.nb_connections + " (" + "QBT_TR(%1 max)QBT_TR".replace("%1", status.nb_connections_limit) + ")"; temp = data.nb_connections + " (" + "QBT_TR(%1 max)QBT_TR".replace("%1", data.nb_connections_limit) + ")";
$('nb_connections').set('html', temp); $('nb_connections').set('html', temp);
$('share_ratio').set('html', data.share_ratio.toFixed(2)); $('share_ratio').set('html', data.share_ratio.toFixed(2));
} }