Use a more familiar lua snake_hour

This commit is contained in:
Evgeny
2021-08-01 19:57:41 +03:00
parent 6e24536f99
commit f24288af99
26 changed files with 208 additions and 184 deletions

View File

@@ -4,9 +4,9 @@
-- author = "Evgeny Zobnin (zobnin@gmail.com)"
-- version = "1.0"
function onResume()
local yearDays = 365
local currentDay = os.date("*t").yday
local percent = math.floor(currentDay / (yearDays / 100))
ui:showProgressBar("Year progress: "..percent.."%", currentDay, yearDays)
function on_resume()
local year_days = 365
local current_day = os.date("*t").yday
local percent = math.floor(current_day / (year_days / 100))
ui:show_progress_bar("Year progress: "..percent.."%", current_day, year_days)
end