diff --git a/COMMITMSG b/COMMITMSG new file mode 100644 index 0000000..e1e406d --- /dev/null +++ b/COMMITMSG @@ -0,0 +1,7 @@ +fix: Clean up awkward user-facing tune/config output lines + +- Remove stray spaces in ESTIMATED tuning header line + +Fixes #25 + +Signed-off-by: Vedant Madane <6527493+VedantMadane@users.noreply.github.com> diff --git a/PRBODY.md b/PRBODY.md new file mode 100644 index 0000000..bff92a8 --- /dev/null +++ b/PRBODY.md @@ -0,0 +1,9 @@ +## Summary + +Clean up awkward user-facing tune/config output lines + +## Changes + +- Remove stray spaces in ESTIMATED tuning header line + +Fixes #25 diff --git a/crates/launchbound-cli/src/main.rs b/crates/launchbound-cli/src/main.rs index ef274a3..dd6d9ce 100644 --- a/crates/launchbound-cli/src/main.rs +++ b/crates/launchbound-cli/src/main.rs @@ -420,7 +420,7 @@ fn cmd_tune( )?; let dev = device(cc)?; println!( - "{} — ESTIMATED tuning (analytical model, cc {cc}); the gate is full, the timings are NOT measurements:", + "{} — ESTIMATED tuning (analytical model, cc {cc}); the gate is full, the timings are NOT measurements:", spec.name ); let mut admitted: Vec<_> = verdicts diff --git a/crates/launchbound-tui/src/app.rs b/crates/launchbound-tui/src/app.rs index 885424a..c2d67ff 100644 --- a/crates/launchbound-tui/src/app.rs +++ b/crates/launchbound-tui/src/app.rs @@ -134,8 +134,13 @@ fn draw_overview(frame: &mut Frame<'_>, app: &App, area: Rect) { lines.push(Line::from("")); lines.push(Line::from(Span::styled( format!( - "{} REFUSED configuration(s) measured FASTER than the chosen one — view 3", - r.rejected_faster.len() + "{} REFUSED {} measured FASTER than the chosen one — view 3", + r.rejected_faster.len(), + if r.rejected_faster.len() == 1 { + "configuration" + } else { + "configurations" + } ), Style::default().add_modifier(Modifier::BOLD), )));