1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-15 16:29:34 +00:00

Merge pull request #364 from futekov/patch-2

Download/upload speed typography changes for web ui
This commit is contained in:
Mike Gelfand 2017-11-28 22:48:10 +03:00 committed by GitHub
commit edf158b509
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -100,11 +100,11 @@ TorrentRendererHelper.renderProgressbar = function (controller, t, progressbar)
};
TorrentRendererHelper.formatUL = function (t) {
return '' + Transmission.fmt.speedBps(t.getUploadSpeed());
return '' + Transmission.fmt.speedBps(t.getUploadSpeed());
};
TorrentRendererHelper.formatDL = function (t) {
return '' + Transmission.fmt.speedBps(t.getDownloadSpeed());
return '' + Transmission.fmt.speedBps(t.getDownloadSpeed());
};
TorrentRendererHelper.formatETA = function(t) {
@ -181,7 +181,7 @@ TorrentRendererFull.prototype = {
fmt.countString('peer', 'peers', peer_count),
'and',
fmt.countString('web seed', 'web seeds', webseed_count),
'-',
'',
TorrentRendererHelper.formatDL(t),
TorrentRendererHelper.formatUL(t)
].join(' ');
@ -189,7 +189,7 @@ TorrentRendererFull.prototype = {
// Downloading from 2 webseed(s)
return ['Downloading from',
fmt.countString('web seed', 'web seeds', webseed_count),
'-',
'',
TorrentRendererHelper.formatDL(t),
TorrentRendererHelper.formatUL(t)
].join(' ');
@ -199,7 +199,7 @@ TorrentRendererFull.prototype = {
t.getPeersSendingToUs(),
'of',
fmt.countString('peer', 'peers', peer_count),
'-',
'',
TorrentRendererHelper.formatDL(t),
TorrentRendererHelper.formatUL(t)
].join(' ');