return if stats is null or false
This commit is contained in:
parent
6334820a5d
commit
074c2f85a5
|
@ -72,6 +72,8 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
update: function(stats) {
|
update: function(stats) {
|
||||||
|
if (!stats) return;
|
||||||
|
|
||||||
function addSpeed(val) {return val + ' KiB/s'}
|
function addSpeed(val) {return val + ' KiB/s'}
|
||||||
|
|
||||||
var updateStat = function(name, config) {
|
var updateStat = function(name, config) {
|
||||||
|
|
Loading…
Reference in New Issue