show the infinity symbol if ratio is less than 0

This commit is contained in:
Damien Churchill 2009-10-20 22:45:32 +00:00
parent 21701cb096
commit d70edb245b
1 changed files with 1 additions and 1 deletions

View File

@ -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('<div style="background: url(/tracker/{0}) no-repeat; padding-left: 20px;">{0}</div>', value);