Skip to content

Fix timeouts with "0 seconds" remaining #28

@dgw

Description

@dgw

Due to how Python handles floating point numbers when interpolated into strings, the remaining seconds are truncated at the decimal point (not rounded). This can lead to the user being told to wait 0 more seconds before changing rep again, when the remaining time is below one second.

Timer code should round the value up to the next integer for display, so even if there's less than a second left it still appears as "1 second".

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions