Skip to content

Commit

Permalink
fix(MultiProgressBarAnimation.kt): startTime (#246)
Browse files Browse the repository at this point in the history
## Fix: Correct startTime Initialization in ProgressTaskImpl

### Summary

This PR fixes an issue where startTime was incorrectly set to pauseTime,
ensuring accurate task progress tracking and speed estimation.

### Changes

Updated:
```kotlin
val startTime = status.pauseTime ?: now
```
to: 
```kotlin
val startTime = status.startTime ?: now
```
  • Loading branch information
Wujiaxuan007 authored Jan 2, 2025
1 parent e749e3e commit efbec56
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ private class ProgressTaskImpl<T>(
)
val total = scope.total

val startTime = status.pauseTime ?: now
val startTime = status.startTime ?: now
val finishTime = status.finishTime ?: now
val pauseTime = status.pauseTime ?: now

Expand Down

0 comments on commit efbec56

Please sign in to comment.