diff --git a/public/app.js b/public/app.js index 301dbac..f441acc 100644 --- a/public/app.js +++ b/public/app.js @@ -704,8 +704,9 @@ function renderStatusPanel(data, panel) {
Last Poll (${lp.totalMs}ms total, ${pollAge}s ago)
`; + const maxTaskMs = lp.tasks.reduce((max, t) => Math.max(max, t.ms), 1); for (const t of lp.tasks) { - const barWidth = lp.totalMs > 0 ? Math.max(2, (t.ms / lp.totalMs) * 100) : 0; + const barWidth = Math.max(2, (t.ms / maxTaskMs) * 100); html += `
${escapeHtml(t.label)}