From c81b1620ca661f99d98132fb84ad2ddcd98c31f1 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Fri, 19 Feb 2010 20:22:37 +0000 Subject: [PATCH] fix the doc for fspeed and hide if speed == 0 --- deluge/ui/web/js/deluge-all/Deluge.Formatters.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deluge/ui/web/js/deluge-all/Deluge.Formatters.js b/deluge/ui/web/js/deluge-all/Deluge.Formatters.js index 575a57f25..141cadc0f 100644 --- a/deluge/ui/web/js/deluge-all/Deluge.Formatters.js +++ b/deluge/ui/web/js/deluge-all/Deluge.Formatters.js @@ -82,11 +82,11 @@ Deluge.Formatters = { /** * Formats a string to display a transfer speed utilizing {@link #size} * - * @param {Number} bytes the filesize in bytes + * @param {Number} bits the number of bits per second * @return {String} formatted string with KiB, MiB or GiB units. */ speed: function(bits) { - return fsize(bits) + '/s' + return (!bits) ? '' : fsize(bits) + '/s'; }, /**