Merge pull request #107 from OlegHahm/floor_smapi

smapi: round remaining hour estimation
This commit is contained in:
Luke Bonham 2015-05-19 13:21:15 +02:00
commit a148f0674c

View file

@ -87,7 +87,7 @@ function smapi:battery(name)
return "N/A"
end
local hrs = mins_left / 60
local hrs = math.floor(mins_left / 60)
local min = mins_left % 60
return string.format("%02d:%02d", hrs, min)
end