mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-27 11:45:44 +00:00
change bits to bytes, thanks to charles
This commit is contained in:
parent
538aed9147
commit
672668ccdb
@ -84,12 +84,12 @@ Deluge.Formatters = {
|
||||
/**
|
||||
* Formats a string to display a transfer speed utilizing {@link #size}
|
||||
*
|
||||
* @param {Number} bits the number of bits per second
|
||||
* @param {Number} bytes the number of bytes per second
|
||||
* @param {Boolean} showZero pass in true to displays 0 values
|
||||
* @return {String} formatted string with KiB, MiB or GiB units.
|
||||
*/
|
||||
speed: function(bits, showZero) {
|
||||
return (!bits && !showZero) ? '' : fsize(bits, showZero) + '/s';
|
||||
speed: function(bytes, showZero) {
|
||||
return (!bytess && !showZero) ? '' : fsize(bytes, showZero) + '/s';
|
||||
},
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user