Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
8c4022b0
Commit
8c4022b0
authored
Nov 20, 2023
by
Jeffrey Morgan
Browse files
fix initial progress stats
parent
433702f4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
progress/bar.go
progress/bar.go
+3
-4
No files found.
progress/bar.go
View file @
8c4022b0
...
@@ -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
.
max
Value
,
value
:
b
.
initial
Value
,
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
.
initial
Value
,
value
:
b
.
max
Value
,
rate
:
0
,
rate
:
0
,
remaining
:
0
,
remaining
:
0
,
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment