From 109a0f157897c15c42eb0a997259dd1caac82898 Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Fri, 2 Jun 2017 18:54:01 +0200 Subject: [PATCH] refactoring --- core/history.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/history.lua b/core/history.lua index 5674fc5..c7ed1d6 100644 --- a/core/history.lua +++ b/core/history.lua @@ -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