mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
rolled back a change, it's not clear which to use.
This commit is contained in:
parent
584b86f693
commit
2bae6b712d
2
inxi
2
inxi
|
@ -4275,7 +4275,7 @@ get_battery_data()
|
||||||
END {
|
END {
|
||||||
# note:voltage_now fluctuates, which will make capacity numbers change a bit
|
# note:voltage_now fluctuates, which will make capacity numbers change a bit
|
||||||
# if any of these values failed, the math will be wrong, but no way to fix that
|
# if any of these values failed, the math will be wrong, but no way to fix that
|
||||||
if (b_ma == "true" && voltage_now != ""){
|
if (b_ma == "true" && voltage_min_design != ""){
|
||||||
if (charge_now != ""){
|
if (charge_now != ""){
|
||||||
energy_now=charge_now*voltage_now
|
energy_now=charge_now*voltage_now
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue