Urgency
- Set initial urgency value to zero.
This commit is contained in:
@@ -895,8 +895,9 @@ int Task::determineVersion (const std::string& line)
|
||||
//
|
||||
float Task::urgency ()
|
||||
{
|
||||
if (! recalc_urgency)
|
||||
return urgency_value;
|
||||
if (recalc_urgency)
|
||||
{
|
||||
urgency_value = 0.0;
|
||||
|
||||
// urgency.priority.coefficient
|
||||
float coefficient = context.config.getReal ("urgency.priority.coefficient");
|
||||
@@ -1079,6 +1080,8 @@ float Task::urgency ()
|
||||
|
||||
// Return the sum of all terms.
|
||||
recalc_urgency = false;
|
||||
}
|
||||
|
||||
return urgency_value;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user