fix: if i > 0 add to bytesRead
This commit is contained in:
parent
96713e3538
commit
0caa54f028
|
@ -241,6 +241,9 @@ func (i *ImportReader) Read(p []byte) (n int, err error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (i *ImportReader) ReadBytes(n int) (err error) {
|
func (i *ImportReader) ReadBytes(n int) (err error) {
|
||||||
|
if n > 0 {
|
||||||
|
i.bytesRead += uint64(n)
|
||||||
|
}
|
||||||
stageProgress := float64(100) / float64(i.totalStages)
|
stageProgress := float64(100) / float64(i.totalStages)
|
||||||
|
|
||||||
// Calculate progress based on bytes read
|
// Calculate progress based on bytes read
|
||||||
|
|
Loading…
Reference in New Issue