From 423a8e3e0a228c59bba11bcfd9349f161fb2fb67 Mon Sep 17 00:00:00 2001 From: Gmer4Lfe Date: Sun, 24 May 2026 11:15:31 -0400 Subject: [PATCH] =?UTF-8?q?varaverk:=20CPU=20canvas=2036=E2=86=9260px;=20a?= =?UTF-8?q?dd=20GPU=20history=20chart=20at=2060px?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../local/emhttp/plugins/varaverk/pages/monitor.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Plugin/usr/local/emhttp/plugins/varaverk/pages/monitor.php b/Plugin/usr/local/emhttp/plugins/varaverk/pages/monitor.php index 9e6195a..6ee64c7 100644 --- a/Plugin/usr/local/emhttp/plugins/varaverk/pages/monitor.php +++ b/Plugin/usr/local/emhttp/plugins/varaverk/pages/monitor.php @@ -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 = []; @@ -222,7 +223,7 @@ function vvRenderCpu(cpu) { } // Canvas chart - html += ``; + 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

'; }