From 496d70c137a2a23902a7797f45240b7feb82e5cf Mon Sep 17 00:00:00 2001 From: Gmer4Lfe Date: Sun, 24 May 2026 11:12:55 -0400 Subject: [PATCH] Revert "varaverk: stretch CPU and GPU graphs to card bottom; add GPU history chart" This reverts commit 660c4762f207811d35506c6a3545ee63b0f81138. --- .../emhttp/plugins/varaverk/pages/monitor.php | 22 +++++++------------ 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/Plugin/usr/local/emhttp/plugins/varaverk/pages/monitor.php b/Plugin/usr/local/emhttp/plugins/varaverk/pages/monitor.php index 15193c1..9e6195a 100644 --- a/Plugin/usr/local/emhttp/plugins/varaverk/pages/monitor.php +++ b/Plugin/usr/local/emhttp/plugins/varaverk/pages/monitor.php @@ -9,9 +9,9 @@
-
+

CPU

-
Loading...
+
Loading...
@@ -26,9 +26,9 @@
-
+

GPU

-
Loading...
+
Loading...
@@ -71,7 +71,6 @@ function vvMeter(label, pct, text) { const VV_HIST_MAX = 24; // 24 × 5 s = 120 s let vvCpuHistory = []; -let vvGpuHistory = []; let vvNetRxHistory = []; let vvNetTxHistory = []; @@ -222,8 +221,8 @@ function vvRenderCpu(cpu) {
`; } - // Canvas chart — flex:1 stretches to fill remaining card height - html += ``; + // Canvas chart + html += ``; return html; } @@ -389,17 +388,12 @@ 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

'; }