mirror of
https://github.com/ollama/ollama.git
synced 2025-12-10 22:33:12 +01:00
fix initial progress stats
This commit is contained in:
@@ -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,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user