Fix inherited urgency when parent and child have the same urgency (#2941)

Update condition for inheritance value hack

If the parent and child task have the same urgency the parent task also
needs the 0.01 extra urgency to be sorted above the child.
This commit is contained in:
Philipp Oberdiek 2024-05-06 02:02:12 +02:00 committed by GitHub
parent 651ea36382
commit 9d9dde1065
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2180,7 +2180,7 @@ float Task::urgency_c () const
// This is a hackish way of making sure parent tasks are sorted above // This is a hackish way of making sure parent tasks are sorted above
// child tasks. For reports that hide blocked tasks, this is not needed. // child tasks. For reports that hide blocked tasks, this is not needed.
if (prev < value) if (prev <= value)
value += 0.01; value += 0.01;
} }
#endif #endif