Skip to content

Commit

Permalink
fix(bar): fmt battery percentage without decimals
Browse files Browse the repository at this point in the history
  • Loading branch information
LGUG2Z committed Sep 15, 2024
1 parent 45894be commit 286bb00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion komorebi-bar/src/battery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ impl Battery {
_ => {}
}

output = format!("{percentage}%");
output = format!("{percentage:.0}%");
}
}

Expand Down

0 comments on commit 286bb00

Please sign in to comment.