mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Urgency
- Set initial urgency value to zero.
This commit is contained in:
parent
041bcfdf21
commit
f05fedfc7a
1 changed files with 152 additions and 149 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue