mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-11 19:06:56 +00:00
fix a couple of issues with the values in the status tab
This commit is contained in:
parent
2956a7db54
commit
de9ba4986d
@ -29,7 +29,12 @@
|
|||||||
* this exception statement from your version. If you delete this exception
|
* this exception statement from your version. If you delete this exception
|
||||||
* statement from all source files in the program, then also delete it here.
|
* statement from all source files in the program, then also delete it here.
|
||||||
*/
|
*/
|
||||||
|
Ext.ns('Deluge.details');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @class Deluge.details.StatusTab
|
||||||
|
* @extends Ext.Panel
|
||||||
|
*/
|
||||||
Deluge.details.StatusTab = Ext.extend(Ext.Panel, {
|
Deluge.details.StatusTab = Ext.extend(Ext.Panel, {
|
||||||
title: _('Status'),
|
title: _('Status'),
|
||||||
autoScroll: true,
|
autoScroll: true,
|
||||||
@ -89,9 +94,9 @@ Deluge.details.StatusTab = Ext.extend(Ext.Panel, {
|
|||||||
seeders = status.total_seeds > -1 ? status.num_seeds + ' (' + status.total_seeds + ')' : status.num_seeds
|
seeders = status.total_seeds > -1 ? status.num_seeds + ' (' + status.total_seeds + ')' : status.num_seeds
|
||||||
peers = status.total_peers > -1 ? status.num_peers + ' (' + status.total_peers + ')' : status.num_peers
|
peers = status.total_peers > -1 ? status.num_peers + ' (' + status.total_peers + ')' : status.num_peers
|
||||||
var data = {
|
var data = {
|
||||||
downloaded: fsize(status.total_done),
|
downloaded: fsize(status.total_done, true),
|
||||||
uploaded: fsize(status.total_uploaded),
|
uploaded: fsize(status.total_uploaded, true),
|
||||||
share: status.ratio.toFixed(3),
|
share: (status.ratio == -1) ? '∞' : status.ratio.toFixed(3),
|
||||||
announce: ftime(status.next_announce),
|
announce: ftime(status.next_announce),
|
||||||
tracker_status: status.tracker_status,
|
tracker_status: status.tracker_status,
|
||||||
downspeed: (status.download_payload_rate) ? fspeed(status.download_payload_rate) : '0.0 KiB/s',
|
downspeed: (status.download_payload_rate) ? fspeed(status.download_payload_rate) : '0.0 KiB/s',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user