parent
5e6bcf354c
commit
0fd2187471
2 changed files with 2 additions and 2 deletions
|
@ -131,7 +131,7 @@ local function worker(args)
|
|||
|
||||
local hours = math.floor(rate_time)
|
||||
local minutes = math.floor((rate_time - hours) * 60)
|
||||
bat_now.perc = math.floor((sum_energy_now / sum_energy_full) * 100)
|
||||
bat_now.perc = math.floor(math.min(100, (sum_energy_now / sum_energy_full) * 100))
|
||||
bat_now.time = string.format("%02d:%02d", hours, minutes)
|
||||
bat_now.watt = tonumber(string.format("%.2f", sum_rate_energy / 1e6))
|
||||
elseif bat_now.status == "Full" then
|
||||
|
|
2
wiki
2
wiki
|
@ -1 +1 @@
|
|||
Subproject commit 8d62fdf794fe0d26802a7d0f7cf156e6b5b620f1
|
||||
Subproject commit 427a9d6acbf3b67ce7d61bb2313ff7a983a658b3
|
Loading…
Add table
Reference in a new issue