Чистка

This commit is contained in:
Maxim
2026-05-08 10:07:21 +03:00
parent 0bdab22a34
commit eb6a32e495
2 changed files with 2 additions and 2 deletions

View File

@@ -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;
}

View File

@@ -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);