- Set initial urgency value to zero.
This commit is contained in:
Paul Beckingham 2011-05-08 11:04:57 -04:00
parent 041bcfdf21
commit f05fedfc7a

View file

@ -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;
} }