complete bar on EOF
Vladimir Bauer
6 years ago
1 changed file(s) with
4 addition(s)
and
0 deletion(s)
.
Raw diff
Collapse all
Expand all
+4
-0
proxyreader.go
less
more
17
17
pr.bar.IncrBy(n, time.Since(pr.iT))
18
18
pr.iT = time.Now()
19
19
}
20
if err == io.EOF {
21
current := pr.bar.Current()
22
pr.bar.SetTotal(current, true)
23
}
20
24
return
21
25
}