Skip to content

Commit

Permalink
fix(server/cron): list expression should use >=
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed Jul 9, 2023
1 parent c6f621f commit 6ab7196
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions imports/cron/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ local function getTimeUnit(value, unit)
for listValue in string.gmatch(value, '%d+') --[[@as number]] do
listValue = tonumber(listValue)

-- if current minute is less than in the expression 0,10,20,45 * * * *
if listValue > currentTime then
-- e.g. if current time is less than in the expression 0,10,20,45 * * * *
if listValue >= currentTime then
return listValue
end
end
Expand Down

0 comments on commit 6ab7196

Please sign in to comment.