mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-08-16 22:31:03 +02:00
fix(upower): round battery percent to whole number (#1058)
This commit is contained in:
parent
f125058e79
commit
81ce2c169f
1 changed files with 1 additions and 1 deletions
|
@ -216,7 +216,7 @@ impl Module<Button> for UpowerModule {
|
||||||
.unwrap_or_default();
|
.unwrap_or_default();
|
||||||
|
|
||||||
let format = format
|
let format = format
|
||||||
.replace("{percentage}", &properties.percentage.to_string())
|
.replace("{percentage}", &properties.percentage.round().to_string())
|
||||||
.replace("{time_remaining}", &time_remaining)
|
.replace("{time_remaining}", &time_remaining)
|
||||||
.replace("{state}", battery_state_to_string(state));
|
.replace("{state}", battery_state_to_string(state));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue