Skip to content

fix set_clock rounding to 60 seconds - #1220

Open
Shr3yash wants to merge 1 commit into
niklasf:masterfrom
Shr3yash:fix/set-clock-rounding
Open

Shr3yash wants to merge 1 commit into
niklasf:masterfrom
Shr3yash:fix/set-clock-rounding

Conversation

@Shr3yash

@Shr3yash Shr3yash commented Nov 12, 2026 •

Copy link
Copy Markdown

set_clock and set_emt can emit invalid [%clk 0:00:60] or [%emt 0:59:60] when the rounded value lands on 60 seconds. Round to milliseconds first so those become 0:01:00 and 1:00:00. Added tests for the 59.9995 and 3599.9995 boundaries.

set_emt had the same bug. 59.9996 came out as 0:00:60.
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