Skip to content

Conversation

@esfacumon
Copy link

This PR Fixes #1587.

This bug, as @fy said, was caused by Time::getMillisecondCounter(), which returns a 32-bit integer. This value overflows after approximately 49.7 days of system uptime, causing incorrect timestamp calculations.

This replaces the Time::getMillisecondCounter() call with (int64) Time::getMillisecondCounterHiRes(). This uses a 64-bit timer, resolving the bug.

(This PR also includes a preliminary commit to fix CRLF line endings in the modified file.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant