return if stats is null or false

This commit is contained in:
Damien Churchill 2009-08-11 22:51:37 +00:00
parent 6334820a5d
commit 074c2f85a5
1 changed files with 2 additions and 0 deletions

View File

@ -72,6 +72,8 @@
},
update: function(stats) {
if (!stats) return;
function addSpeed(val) {return val + ' KiB/s'}
var updateStat = function(name, config) {