diff --git a/audit/internal/webui/pages.go b/audit/internal/webui/pages.go index ca50f11..c99e6df 100644 --- a/audit/internal/webui/pages.go +++ b/audit/internal/webui/pages.go @@ -436,7 +436,6 @@ func renderMetrics() string {
GPU — Temperature
GPU temperature -
@@ -459,16 +458,6 @@ es.addEventListener('metrics', e => { const fanCard = document.getElementById('card-server-fans'); if (fanCard) fanCard.style.display = (d.fans && d.fans.length > 0) ? '' : 'none'; - let gpuHTML = ''; - (d.gpus||[]).forEach(g => { - gpuHTML += 'GPU '+g.index+'' + - ''+g.temp_c+'°C' + - ''+g.usage_pct+'% load' + - ''+g.mem_usage_pct+'% mem' + - ''+g.power_w+' W'; - }); - const gt = document.getElementById('gpu-table'); - if (gt) gt.innerHTML = gpuHTML ? ''+gpuHTML+'
' : ''; }); es.onerror = () => {}; ` diff --git a/audit/internal/webui/server.go b/audit/internal/webui/server.go index cb34b30..7ea24a0 100644 --- a/audit/internal/webui/server.go +++ b/audit/internal/webui/server.go @@ -625,7 +625,7 @@ func renderChartSVG(title string, datasets [][]float64, names []string, labels [ opt := gocharts.NewLineChartOptionWithData(datasets) opt.Title = gocharts.TitleOption{Text: title} opt.XAxis.Labels = sparse - opt.Legend = gocharts.LegendOption{SeriesNames: names, Show: gocharts.Ptr(false)} + opt.Legend = gocharts.LegendOption{SeriesNames: names} if yMin != nil || yMax != nil { opt.YAxis = []gocharts.YAxisOption{{ Min: yMin,