mirror of
https://github.com/unraid/webgui.git
synced 2026-04-25 11:49:30 -05:00
Revert "Dashboard: add CPU and NETWORK chart"
This reverts commit c352244392.
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user