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 {
switch {
case b.statted.IsZero():
case b.currentValue >= b.maxValue:
b.stats = Stats{
value: b.maxValue,
value: b.initialValue,
rate: 0,
remaining: 0,
}
case b.statted.IsZero():
case b.currentValue >= b.maxValue:
b.stats = Stats{
value: b.initialValue,
value: b.maxValue,
rate: 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