From b615ebe1b86bd2c2d2970591c466397b34e63dfd Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Fri, 11 Jun 2010 15:59:33 +0100 Subject: [PATCH] change bits to bytes, thanks to charles --- deluge/ui/web/js/deluge-all/Formatters.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deluge/ui/web/js/deluge-all/Formatters.js b/deluge/ui/web/js/deluge-all/Formatters.js index ed36bfe4d..face94350 100644 --- a/deluge/ui/web/js/deluge-all/Formatters.js +++ b/deluge/ui/web/js/deluge-all/Formatters.js @@ -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'; }, /**