fixing parethesis issue

This commit is contained in:
aajjbb 2016-04-03 14:10:54 -03:00
parent 6cd0a29535
commit f50543b449
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ local function worker(args)
local rate_time = 0
if bat_now.status == "Charging" then
rate_time = (energy_full - energy_now) / rate_power or rate_current
rate_time = (energy_full - energy_now) / (rate_power or rate_current)
elseif bat_now.status == "Discharging" then
rate_time = energy_now / (rate_power or rate_current)
end