fix(bar): fmt battery percentage without decimals

This commit is contained in:
LGUG2Z
2024-09-14 21:46:00 -07:00
parent 45894be4ff
commit 286bb0070c

View File

@@ -86,7 +86,7 @@ impl Battery {
_ => {}
}
output = format!("{percentage}%");
output = format!("{percentage:.0}%");
}
}