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}%"); } }