diff --git a/cmd/server/web/js/app.js b/cmd/server/web/js/app.js index 46ceeab..3b50eae 100644 --- a/cmd/server/web/js/app.js +++ b/cmd/server/web/js/app.js @@ -1,3 +1,4 @@ +// app.js (оркестратор) import { fetchHealth, fetchHistory } from "./data.js"; import { state, smooth, addSignal } from "./state.js"; import { @@ -47,7 +48,6 @@ async function update() { setBars(smooth(percent)); setSignal(level); - // 🔥 ВОТ ЭТО ТЫ ПОТЕРЯЛ if (DOM.lastByte) { DOM.lastByte.textContent = value; } diff --git a/cmd/server/web/js/chart.js b/cmd/server/web/js/chart.js index ba10dfc..51c4c21 100644 --- a/cmd/server/web/js/chart.js +++ b/cmd/server/web/js/chart.js @@ -23,7 +23,7 @@ export function drawChart(canvas, history) { for (let i = 0; i < history.length; i++) { const x = i * stepX; - const y = h - history[i].value * scaleY; // 👈 FIX + const y = h - history[i].value * scaleY; if (i === 0) ctx.moveTo(x, y); else ctx.lineTo(x, y);