Skip to content
This repository was archived by the owner on Dec 26, 2022. It is now read-only.

Commit 24fd383

Browse files
committed
[ProgressBar] fix calculation
1 parent 1d4250f commit 24fd383

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/TaskTimeService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const TaskTimeService = {
3939
if (estimatedWorkingTimeEnd) {
4040
const durationWorkDayMs =
4141
estimatedWorkingTimeEnd.getTime() - workingTimeStart.getTime() || 1;
42-
progress = (durationMs * 100) / durationWorkDayMs;
42+
progress = ((durationMs + restMs) * 100) / durationWorkDayMs;
4343
progress = Math.min(progress, 100);
4444
}
4545

0 commit comments

Comments
 (0)