From d70edb245b6c8260e7f0006e542368e29a8d8b5e Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Tue, 20 Oct 2009 22:45:32 +0000 Subject: [PATCH] show the infinity symbol if ratio is less than 0 --- deluge/ui/web/js/Deluge.Torrents.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/ui/web/js/Deluge.Torrents.js b/deluge/ui/web/js/Deluge.Torrents.js index a61dcc258..a434cd3a0 100644 --- a/deluge/ui/web/js/Deluge.Torrents.js +++ b/deluge/ui/web/js/Deluge.Torrents.js @@ -66,7 +66,7 @@ Copyright: } } function availRenderer(value, p, r) { - return new Number(value).toFixed(3); + return (value < 0) ? '∞' : new Number(value).toFixed(3); } function trackerRenderer(value, p, r) { return String.format('
{0}
', value);