Mpdreamz / shellprogressbar

ShellProgressBar - display progress in your console application
MIT License
1.43k stars 134 forks source link

Tick(estimatedDuration, message) does not update EstimatedDuration #89

Closed JamieKitson closed 2 years ago

JamieKitson commented 2 years ago

Compare:

        public void Tick(TimeSpan estimatedDuration, string message = null)
        {
            Interlocked.Increment(ref _currentTick);
            FinishTick(message);
        }
        public void Tick(int newTickCount, TimeSpan estimatedDuration, string message = null)
        {
            Interlocked.Exchange(ref _currentTick, newTickCount);
            _estimatedDuration = estimatedDuration;

            FinishTick(message);
        }

https://github.com/Mpdreamz/shellprogressbar/blob/c28355ff87d9ef277261a22cdfa91be2789a7fd0/src/ShellProgressBar/ProgressBarBase.cs#L127