do not log forced update-every message if the value is null
Costa Tsaousis (ktsaou) committed
Dec 26, 2017 at 21:17 UTC
bf9a43c288123b05bda751ea1569d4e455b842c2
1 file changed
+3
-1
web/dashboard.js
+3
-1
@@ -2477,7 +2477,9 @@ var NETDATA = window.NETDATA || {};
2477
// the forced update_every
2478
that.force_update_every = NETDATA.dataAttribute(that.element, 'update-every', null);
2479
if(typeof that.force_update_every !== 'number' || that.force_update_every <= 1) {
2480
- that.log('ignoring invalid value of property data-update-every');
2480
+ if(that.force_update_every !== null)
2481
+ that.log('ignoring invalid value of property data-update-every');
2482
+
2483
that.force_update_every = null;
2484
}
2485
else