fix
This commit is contained in:
@@ -161,7 +161,7 @@ class Cost
|
|||||||
# charge battery with return_kwh
|
# charge battery with return_kwh
|
||||||
return_kwh -= battery.charge(return_kwh)
|
return_kwh -= battery.charge(return_kwh)
|
||||||
|
|
||||||
if low_hour.eql?(formatted_hour)
|
if lowest_hour.eql?(formatted_hour)
|
||||||
# charge battery during lowest hour
|
# charge battery during lowest hour
|
||||||
usage_kwh += battery.charge(max_charge_kwh)
|
usage_kwh += battery.charge(max_charge_kwh)
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user