Progress returns the number of bytes obtained for the target file, and the total needed.
()
| 143 | |
| 144 | // Progress returns the number of bytes obtained for the target file, and the total needed. |
| 145 | func (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 | |
| 152 | type ByteRange struct { |
| 153 | Start int64 |
no test coverage detected