Fix urgency inheritance for negative-urgency tasks

This commit is contained in:
Jackson Abascal 2022-03-27 14:22:28 -05:00 committed by Tomas Babej
parent 8c3aa95224
commit c3bb3810be

View file

@ -2141,7 +2141,7 @@ float Task::urgency ()
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
float Task::urgency_inherit () const float Task::urgency_inherit () const
{ {
float v = FLT_MIN; float v = -FLT_MAX;
#ifdef PRODUCT_TASKWARRIOR #ifdef PRODUCT_TASKWARRIOR
// Calling getBlockedTasks is rather expensive. // Calling getBlockedTasks is rather expensive.
// It is called recursively for each dependency in the chain here. // It is called recursively for each dependency in the chain here.