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

Method ShowProgressLoop

cmd/zsync/main.go:368–379  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

366}
367
368func (p *progressReporter) ShowProgressLoop() {
369 for {
370 select {
371 case <-p.ticker.C:
372 p.mu.Lock()
373 p.showProgress()
374 p.mu.Unlock()
375 case <-p.stopTicker:
376 return
377 }
378 }
379}
380
381func (p *progressReporter) showProgress() {
382 got, total := p.zs.Progress()

Callers 1

NewProgressReporterFunction · 0.80

Calls 1

showProgressMethod · 0.95

Tested by

no test coverage detected