"src/vscode:/vscode.git/clone" did not exist on "e222246b4e7b60db7fe5fd27dc187bce446b5b56"
Commit 8c4022b0 authored by Jeffrey Morgan's avatar Jeffrey Morgan
Browse files

fix initial progress stats

parent 433702f4
...@@ -124,15 +124,14 @@ func (b *Bar) Stats() Stats { ...@@ -124,15 +124,14 @@ func (b *Bar) Stats() Stats {
switch { switch {
case b.statted.IsZero(): case b.statted.IsZero():
case b.currentValue >= b.maxValue:
b.stats = Stats{ b.stats = Stats{
value: b.maxValue, value: b.initialValue,
rate: 0, rate: 0,
remaining: 0, remaining: 0,
} }
case b.statted.IsZero(): case b.currentValue >= b.maxValue:
b.stats = Stats{ b.stats = Stats{
value: b.initialValue, value: b.maxValue,
rate: 0, rate: 0,
remaining: 0, remaining: 0,
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment