()
| 379 | } |
| 380 | |
| 381 | func (p *progressReporter) showProgress() { |
| 382 | got, total := p.zs.Progress() |
| 383 | elapsed := time.Since(p.startTime) |
| 384 | fmt.Fprintf(os.Stderr, "\r%s %3.1fMBps %02.1f%% of target obtained", elapsed.Truncate(time.Millisecond*100).String(), float64(got-p.startBytes)/elapsed.Seconds()/1000000.0, float64(got)/float64(total)*100) |
| 385 | } |
| 386 | |
| 387 | func (p *progressReporter) progress(url string, event zsync.FetchEvent, err error) { |
| 388 | p.mu.Lock() |
no test coverage detected