Bug #987
- 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:
committed by
Paul Beckingham
parent
8cbacdacf7
commit
b4d09d1c30
@@ -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 ();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user