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 ()
|
float Task::urgency ()
|
||||||
{
|
{
|
||||||
if (! recalc_urgency)
|
if (recalc_urgency)
|
||||||
return urgency_value;
|
{
|
||||||
|
urgency_value = 0.0;
|
||||||
|
|
||||||
// urgency.priority.coefficient
|
// urgency.priority.coefficient
|
||||||
float coefficient = context.config.getReal ("urgency.priority.coefficient");
|
float coefficient = context.config.getReal ("urgency.priority.coefficient");
|
||||||
@@ -1079,6 +1080,8 @@ float Task::urgency ()
|
|||||||
|
|
||||||
// Return the sum of all terms.
|
// Return the sum of all terms.
|
||||||
recalc_urgency = false;
|
recalc_urgency = false;
|
||||||
|
}
|
||||||
|
|
||||||
return urgency_value;
|
return urgency_value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user