Revert "Dashboard: add CPU and NETWORK chart"

This reverts commit c352244392.
This commit is contained in:
bergware
2021-05-17 19:30:52 +02:00
parent c352244392
commit 92bc6f9faf
+10 -8
View File
@@ -635,25 +635,27 @@ function resetCharts() {
txd = txd.slice(-timeline);
}
function addChartCpu(now, load) {
cputime = now + 1;
var newtime = now + 1;
cputime = newtime;
for (var i=0; i < cpu.length-timeline; i++) {
// clear values outside graph
cpu[i].x = cputime-timeline;
cpu[i].x = newtime-timeline;
cpu[i].y = 0;
}
cpu.push({x:cputime, y:load});
cpu.push({x:newtime, y:load});
}
function addChartNet(now, rx, tx) {
nettime = now + 1;
var newtime = now + 1;
nettime = newtime;
for (var i=0; i < rxd.length-timeline; i++) {
// clear values outside graph
rxd[i].x = nettime-timeline;
txd[i].x = nettime-timeline;
rxd[i].x = newtime-timeline;
txd[i].x = newtime-timeline;
rxd[i].y = 0;
txd[i].y = 0;
}
rxd.push({x:nettime, y:rx});
txd.push({x:nettime, y:tx});
rxd.push({x:newtime, y:rx});
txd.push({x:newtime, y:tx});
}
function toggleVPN(id,vtun) {
var up = $('#vpn-active');