@cryptotaxi247 / netdata-1 / commits / 3116fa6f5

allow importing snapshots without compression

Costa Tsaousis (ktsaou) committed Nov 14, 2017 at 22:26 UTC 3116fa6f56c677ac1f090841a92f83f5858bfe1a
1 file changed +10
web/index.html
+10
@@ -2955,6 +2955,16 @@
2955 //console.log(result);
2956 var date_after = new Date(result.after_ms);
2957 var date_before = new Date(result.before_ms);
2958 +
2959 + if(typeof result.charts_ok === 'undefined')
2960 + result.charts_ok = 'unknown';
2961 +
2962 + if(typeof result.charts_failed === 'undefined')
2963 + result.charts_failed = 0;
2964 +
2965 + if(typeof result.compression === 'undefined')
2966 + result.compression = 'none';
2967 +
2968 document.getElementById('loadSnapshotFilename').innerHTML = '<b>' + files.item(0).name + '</b>';
2969 document.getElementById('loadSnapshotHostname').innerHTML = '<b>' + result.hostname + '</b>, netdata version: <b>' + result.netdata_version.toString() + '</b>';
2970 document.getElementById('loadSnapshotURL').innerHTML = result.url;