Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix urgency inheritance for negative-urgency tasks #2760

Merged
merged 1 commit into from
Apr 13, 2022

Conversation

Cephian
Copy link
Contributor

@Cephian Cephian commented Mar 27, 2022

Resolves #2732. Currently, if a task with negative urgency inherits its urgency from another task with negative urgency, the resulting calculated urgency can be erroneously positive. See the example given in #2732 for more details.

The root of the issue is that when calculating inherited urgency, the algorithm chooses the maximum of FLT_MIN and the urgency of its blocked tasks. FLT_MIN is is the minimum positive float value, so -FLT_MAX should be used instead. Thanks to @smemsh for diagnosing the issue in the comments of the initial bug report.

@tbabej tbabej merged commit c3bb381 into GothenburgBitFactory:develop Apr 13, 2022
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.

Inherited urgency calculated incorrectly with custom project/tag urgency coefficients
2 participants