fix eltek battery calc
This commit is contained in:
parent
140d43162c
commit
13a16f437b
|
@ -257,7 +257,7 @@ sub manage_selection {
|
||||||
|
|
||||||
if ($result->{powerSystemCapacityScale} eq 'ah' && defined($current)) {
|
if ($result->{powerSystemCapacityScale} eq 'ah' && defined($current)) {
|
||||||
$self->{battery}->{charge_remaining_time} =
|
$self->{battery}->{charge_remaining_time} =
|
||||||
int($result->{batteryRemainingCapacityValue} * 3600 / $current * $scale_current);
|
int(($result->{batteryRemainingCapacityValue} * 3600) / ($current * $scale_current));
|
||||||
}
|
}
|
||||||
|
|
||||||
$self->threshold_eltek_configured(
|
$self->threshold_eltek_configured(
|
||||||
|
|
Loading…
Reference in New Issue