Skip to content

Avoid off by one error, rounding GetTicks calc#152

Merged
rjonaitis merged 1 commit into
myriadrf:developfrom
oe1rsa:develop
Oct 4, 2025
Merged

Avoid off by one error, rounding GetTicks calc#152
rjonaitis merged 1 commit into
myriadrf:developfrom
oe1rsa:develop

Conversation

@oe1rsa

@oe1rsa oe1rsa commented Oct 4, 2025

Copy link
Copy Markdown
Contributor

GetTicks cast the result from double to uint64_t, occasionally causing errors of one tick. E.g. 6143.999999904 will be returned as 6143 while the correct value is 6144. Proper rounding fixes the problem.

GetTicks cast the result from double to uint64_t, occasionally
causing errors of one tick. E.g. 6143.999999904 will be returned
as 6143 while the correct value is 6144. Proper rounding fixes
the problem.
@rjonaitis rjonaitis merged commit a9aa26f into myriadrf:develop Oct 4, 2025
12 of 15 checks passed
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.

2 participants