From d68639e5913b491ea3cdde8b5d4f3ca0b68e9c3e Mon Sep 17 00:00:00 2001 From: oOHiyoriOo Date: Sat, 13 Jun 2026 18:03:26 +0200 Subject: [PATCH] fix: remove orphaned duplicate netChart code causing SyntaxError MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Lines 88-103 were a duplicate of the stackedAreaChart setup floating outside any function — the stray }); at line 103 had no matching open brace. Removed the 16 orphaned lines. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- js/pages/serverInfo.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/js/pages/serverInfo.js b/js/pages/serverInfo.js index 97a2614..576538d 100644 --- a/js/pages/serverInfo.js +++ b/js/pages/serverInfo.js @@ -85,22 +85,6 @@ function ServerInfoPage(params, container) { window._netChart = netChart; }); - netChart.yAxis.axisLabel('Network').tickFormat(function (bytes) { - var fmt = d3.format('.0f'); - if (bytes < 1024) return fmt(bytes) + 'B'; - if (bytes < 1048576) return fmt(bytes / 1024) + 'kB'; - if (bytes < 1073741824) return fmt(bytes / 1048576) + 'MB'; - return fmt(bytes / 1073741824) + 'GB'; - }); - netChart.xAxis.axisLabel('Time').tickFormat(function (d) { return d3.time.format('%H:%M:%S')(new Date(d)); }); - - d3.select('#chart-network').datum([ - { key: 'IN', values: [] }, - { key: 'OUT', values: [] } - ]).call(netChart); - - window._netChart = netChart; - }); nv.addGraph(function () { var playersChart = nv.models.pieChart()