Closed alexheretic closed 1 year ago
In scenarios where the ProgressState::eta() returns very high/maxed Duration, calling ProgressState::duration() can panic as elapsed + eta overflows.
ProgressState::eta()
Duration
ProgressState::duration()
elapsed + eta
This PR avoids that panic. In this scenario ProgressState::duration() will return Duration::MAX.
Duration::MAX
Fixes #561
In scenarios where the
ProgressState::eta()
returns very high/maxedDuration
, callingProgressState::duration()
can panic aselapsed + eta
overflows.This PR avoids that panic. In this scenario
ProgressState::duration()
will returnDuration::MAX
.Fixes #561