From ef278e7e8ce2011cc32a5e8050d0bd3b8ffce96b Mon Sep 17 00:00:00 2001 From: Julian Goldstein Date: Tue, 23 Jun 2026 11:05:17 -0500 Subject: [PATCH] template: split runqueue latency header onto two lines MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The "(wakeup → on-cpu)" subtitle wrapped awkwardly in the narrow histogram panel. Put it on its own line and reserve a second header row in the bar-height budget so no bar gets pushed off the bottom. Co-Authored-By: Claude Opus 4.8 --- template/src/components/histogram.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/template/src/components/histogram.jsx b/template/src/components/histogram.jsx index a1a9e0f..18208cc 100644 --- a/template/src/components/histogram.jsx +++ b/template/src/components/histogram.jsx @@ -10,11 +10,12 @@ const BARW = 16; export default ({ latency, maxRows }) => ( - {fg(idx(244))(" runqueue latency (wakeup → on-cpu)")} + {fg(idx(244))(" runqueue latency")} + {fg(idx(244))(" (wakeup → on-cpu)")} {() => { const slots = latency.get(); - const fit = Math.max(1, (maxRows ?? HI - LO + 2) - 1); // rows for bars + const fit = Math.max(1, (maxRows ?? HI - LO + 3) - 2); // rows for bars (2 header lines) // Window the buckets to what fits, biased to the populated range, so a // short panel shows the live distribution instead of clipping it away.