refactoring

This commit is contained in:
Manuel Simon Hirsig
2017-06-02 18:54:01 +02:00
parent 751e747e00
commit 109a0f1578
+4 -4
View File
@@ -14,14 +14,14 @@ function LOAD2()
end
do
local cache = 0
local next_push = 0
function get_next_push()
if time() > cache then
if time() > next_push then
local date = date('*t')
date.hour, date.min, date.sec = 24, 0, 0
cache = time(date)
next_push = time(date)
end
return cache
return next_push
end
end