- Fixed bug #987, so that total active time does not continue to accumulate
  after an active task is completed.

Signed-off-by: Paul Beckingham <paul@beckingham.net>
This commit is contained in:
Louis-Claude Canon 2012-04-24 23:36:04 -04:00 committed by Paul Beckingham
parent 8cbacdacf7
commit b4d09d1c30
2 changed files with 8 additions and 3 deletions

View file

@ -22,6 +22,8 @@ Bugs
Spiegl).
+ Fixed bug #986, so that the 'info' report uses the correct date format
(thanks to Louis-Claude Canon).
+ Applied patch for bug #987, so that total active time does not continue to
accumulate after an active task is completed (thanks to Louis-Claude Canon).
+ Fixed bug #988, updating the documentation so that 'undo.data' usage is more
clearly stated (thanks to Louis-Claude Canon).
+ Fixed grammar in feedback string (thanks to Uli Martens).

View file

@ -401,10 +401,13 @@ int CmdInfo::execute (std::string& output)
// task started
total_time -= timestamp.toEpoch ();
}
else if (before.get ("start") != ""
&& after.get ("start") == "")
else if (((before.get ("start") != "" &&
after.get ("start") == "") ||
(before.get ("status") != "completed" &&
after.get ("status") == "completed")) &&
total_time < 0)
{
// task stopped
// task stopped or done
total_time += timestamp.toEpoch ();
}
}