Skip to content

Commit

Permalink
move timestream timeskip tracing to higher debug level
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Aug 1, 2024
1 parent 92a59e7 commit 924f8d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion timestream.lua
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,9 @@ local function on_tick()
-- don't let our deficit grow unbounded if we can never catch up
timeskip_deficit = math.min(desired_timeskip - timeskip, 100.0)

if DEBUG then print(('timeskip (%d, +%.2f)'):format(timeskip, timeskip_deficit)) end
if DEBUG and (tonumber(DEBUG) or 0) >= 2 then
print(('timeskip (%d, +%.2f)'):format(timeskip, timeskip_deficit))
end
if timeskip <= 0 then return end

local desired_calendar_timeskip = (timeskip * state.settings.calendar_rate) + calendar_timeskip_deficit
Expand Down

0 comments on commit 924f8d3

Please sign in to comment.