change bits to bytes, thanks to charles
This commit is contained in:
parent
3ed8279219
commit
b615ebe1b8
|
@ -84,12 +84,12 @@ Deluge.Formatters = {
|
||||||
/**
|
/**
|
||||||
* Formats a string to display a transfer speed utilizing {@link #size}
|
* 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
|
* @param {Boolean} showZero pass in true to displays 0 values
|
||||||
* @return {String} formatted string with KiB, MiB or GiB units.
|
* @return {String} formatted string with KiB, MiB or GiB units.
|
||||||
*/
|
*/
|
||||||
speed: function(bits, showZero) {
|
speed: function(bytes, showZero) {
|
||||||
return (!bits && !showZero) ? '' : fsize(bits, showZero) + '/s';
|
return (!bytess && !showZero) ? '' : fsize(bytes, showZero) + '/s';
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue