varaverk: remove GPU history chart
This commit is contained in:
@@ -75,7 +75,7 @@ function vvMeter(label, pct, text) {
|
||||
|
||||
const VV_HIST_MAX = 24; // 24 × 5 s = 120 s
|
||||
let vvCpuHistory = [];
|
||||
let vvGpuHistory = [];
|
||||
|
||||
let vvNetRxHistory = [];
|
||||
let vvNetTxHistory = [];
|
||||
|
||||
@@ -459,12 +459,7 @@ function vvPollMonitor() {
|
||||
<span style="color:${tempColor};font-weight:bold;">${temp}°C</span>
|
||||
<span style="color:#666;margin-left:12px;">Power</span>
|
||||
<span style="color:#aaa;font-weight:bold;">${powerStr}</span>
|
||||
</div>` +
|
||||
`<canvas id="vv-gpu-canvas" style="width:100%;height:60px;display:block;"></canvas>`;
|
||||
|
||||
vvGpuHistory.push(utilPct);
|
||||
if (vvGpuHistory.length > VV_HIST_MAX) vvGpuHistory.shift();
|
||||
vvDrawChart(document.getElementById('vv-gpu-canvas'), vvGpuHistory, '#7e57c2', 'rgba(126,87,194,0.18)', true);
|
||||
</div>`;
|
||||
} else {
|
||||
document.getElementById('vv-gpu-body').innerHTML = '<p style="color:#555;font-style:italic">No GPU detected</p>';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user