From 286bb0070c066122f54216a18595147774ed826d Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Sat, 14 Sep 2024 21:46:00 -0700 Subject: [PATCH] fix(bar): fmt battery percentage without decimals --- komorebi-bar/src/battery.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/komorebi-bar/src/battery.rs b/komorebi-bar/src/battery.rs index 3684102d..1b1517e0 100644 --- a/komorebi-bar/src/battery.rs +++ b/komorebi-bar/src/battery.rs @@ -86,7 +86,7 @@ impl Battery { _ => {} } - output = format!("{percentage}%"); + output = format!("{percentage:.0}%"); } }