Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| ... | ... |
@@ -34,7 +34,7 @@ func NewProgressReader(in io.ReadCloser, out Output, size int64, id, action stri |
| 34 | 34 |
func (p *Reader) Read(buf []byte) (n int, err error) {
|
| 35 | 35 |
read, err := p.in.Read(buf) |
| 36 | 36 |
p.current += int64(read) |
| 37 |
- updateEvery := int64(1024 * 512) //512kB |
|
| 37 |
+ updateEvery := int64(1024 * 512) // 512kB |
|
| 38 | 38 |
if p.size > 0 {
|
| 39 | 39 |
// Update progress for every 1% read if 1% < 512kB |
| 40 | 40 |
if increment := int64(0.01 * float64(p.size)); increment < updateEvery {
|