MCPcopy Create free account
hub / github.com/cph6/zsync / Progress

Method Progress

syncer.go:145–150  ·  view source on GitHub ↗

Progress returns the number of bytes obtained for the target file, and the total needed.

()

Source from the content-addressed store, hash-verified

143
144// Progress returns the number of bytes obtained for the target file, and the total needed.
145func (zs *Syncer) Progress() (got, total int64) {
146 todo := zs.rs.BlocksTodo()
147 got = int64(zs.blocks-todo) * zs.blocksize
148 total = int64(zs.blocks) * zs.blocksize
149 return
150}
151
152type ByteRange struct {
153 Start int64

Callers 4

mainFunction · 0.80
readSeedFileFunction · 0.80
showProgressMethod · 0.80
progressMethod · 0.80

Calls 1

BlocksTodoMethod · 0.80

Tested by

no test coverage detected