mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-01-19 10:20:50 +01:00
trivial: fix whitespace issue with the last patch
This commit is contained in:
parent
95ecdb25b2
commit
b458ef8250
1 changed files with 6 additions and 6 deletions
|
|
@ -567,13 +567,13 @@ up_device_supply_refresh_battery (UpDeviceSupply *supply)
|
|||
energy *= voltage_design;
|
||||
}
|
||||
|
||||
charge_full = sysfs_get_double (native_path, "charge_full") / 1000000.0;
|
||||
if (charge_full == 0)
|
||||
charge_full = sysfs_get_double (native_path, "charge_full_design") / 1000000.0;
|
||||
charge_full = sysfs_get_double (native_path, "charge_full") / 1000000.0;
|
||||
if (charge_full == 0)
|
||||
charge_full = sysfs_get_double (native_path, "charge_full_design") / 1000000.0;
|
||||
|
||||
/* If charge_full exists, then current_now is always reported in uA.
|
||||
* In the legacy case, where energy only units exist, and power_now isn't present
|
||||
* current_now is power in uW. */
|
||||
/* If charge_full exists, then current_now is always reported in uA.
|
||||
* In the legacy case, where energy only units exist, and power_now isn't present
|
||||
* current_now is power in uW. */
|
||||
energy_rate = fabs (sysfs_get_double (native_path, "current_now") / 1000000.0);
|
||||
if (charge_full != 0)
|
||||
energy_rate *= voltage_design;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue