detect empty JSON file and prevent refreshing charts in case it is
box@home root committed
Jun 21, 2013 at 01:16 UTC
c5ac4b3d8d5719ce867f971c2789bd401492d256
1 file changed
+2
netdata.js
+2
@@ -14,6 +14,8 @@
14
cache: false
15
}).responseText;
16
17
+ if(!jsonData || jsonData.length == 0) return;
18
+
19
// Create our data table out of JSON data loaded from server.
20
charts_data[index] = new google.visualization.DataTable(jsonData);
21