style(battery): Capitalize float 'F' suffix

master
Kiri 2024-04-24 15:07:20 +02:00
parent 57197b8e01
commit a2c5a8215b
No known key found for this signature in database
GPG Key ID: F1BEE619CFF29825
1 changed files with 2 additions and 2 deletions

View File

@ -371,12 +371,12 @@ waybar::modules::Battery::getInfos() {
if (charge_full_exists && charge_full_design_exists) {
float batHealthPercent = ((float)charge_full / charge_full_design) * 100;
if (mainBatHealthPercent == 0.0f || batHealthPercent < mainBatHealthPercent) {
if (mainBatHealthPercent == 0.0F || batHealthPercent < mainBatHealthPercent) {
mainBatHealthPercent = batHealthPercent;
}
} else if (energy_full_exists && energy_full_design_exists) {
float batHealthPercent = ((float)energy_full / energy_full_design) * 100;
if (mainBatHealthPercent == 0.0f || batHealthPercent < mainBatHealthPercent) {
if (mainBatHealthPercent == 0.0F || batHealthPercent < mainBatHealthPercent) {
mainBatHealthPercent = batHealthPercent;
}
}