Fix system stats graphs resetting and speeding up while a job runs
This commit is contained in:
@@ -1415,6 +1415,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function startStatsPolling() {
|
function startStatsPolling() {
|
||||||
|
if (statsInterval) return; // already polling; keep the history
|
||||||
document.getElementById('sys-stats').style.display = 'block';
|
document.getElementById('sys-stats').style.display = 'block';
|
||||||
statHistory.cpu = []; statHistory.mem = []; statHistory.disk = [];
|
statHistory.cpu = []; statHistory.mem = []; statHistory.disk = [];
|
||||||
pollSystemStats();
|
pollSystemStats();
|
||||||
|
|||||||
Reference in New Issue
Block a user