Fix for task report
This commit is contained in:
parent
72b89c816b
commit
57e2c93e85
1 changed files with 1 additions and 1 deletions
|
|
@ -149,7 +149,7 @@ class Task extends EntityModel
|
|||
$endTime = min($endTime, $endTimeCutoff);
|
||||
}
|
||||
|
||||
$duration += $endTime - $startTime;
|
||||
$duration += max($endTime - $startTime, 0);
|
||||
}
|
||||
|
||||
return $duration;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue