+
GPU
-
Loading...
+
Loading...
@@ -71,6 +71,7 @@ function vvMeter(label, pct, text) {
const VV_HIST_MAX = 24; // 24 × 5 s = 120 s
let vvCpuHistory = [];
+let vvGpuHistory = [];
let vvNetRxHistory = [];
let vvNetTxHistory = [];
@@ -221,8 +222,8 @@ function vvRenderCpu(cpu) {
`;
}
- // Canvas chart
- html += `
`;
+ // Canvas chart — flex:1 stretches to fill remaining card height
+ html += `
`;
return html;
}
@@ -388,12 +389,17 @@ function vvPollMonitor() {
vvMeter('GPU', utilPct, `${utilPct}%`) +
vvMeter('Encode', gpu.enc_pct ?? 0, `${gpu.enc_pct ?? 0}%`) +
vvMeter('Decode', gpu.dec_pct ?? 0, `${gpu.dec_pct ?? 0}%`) +
- `
+ `
Temp
${temp}°C
Power
${powerStr}
-
`;
+
` +
+ `
`;
+
+ 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);
} else {
document.getElementById('vv-gpu-body').innerHTML = '
No GPU detected
';
}