mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 08:37:41 +00:00
Cleanups
This commit is contained in:
parent
a28dd3944c
commit
97dae69f28
@ -192,7 +192,7 @@ check_proc_acpi_battery(const char * node, bool * have_battery,
|
|||||||
pct = (int) ((((float) remaining) / ((float) maximum)) * 100.0f);
|
pct = (int) ((((float) remaining) / ((float) maximum)) * 100.0f);
|
||||||
if (pct < 0)
|
if (pct < 0)
|
||||||
pct = 0;
|
pct = 0;
|
||||||
else if (pct > 100)
|
if (pct > 100)
|
||||||
pct = 100;
|
pct = 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user