MCPcopy Index your code
hub / github.com/codechenx/FastTableViewer / increment

Method increment

io.go:40–52  ·  view source on GitHub ↗
(bytes int64)

Source from the content-addressed store, hash-verified

38}
39
40func (p *progressTracker) increment(bytes int64) {
41 if !p.showProgress {
42 return
43 }
44 p.current += bytes
45 p.lineCount++
46
47 // Update display every N lines OR every 0.5 seconds (whichever comes first)
48 if p.lineCount%p.updateEvery == 0 || time.Since(p.lastUpdate) > 500*time.Millisecond {
49 p.display()
50 p.lastUpdate = time.Now()
51 }
52}
53
54func (p *progressTracker) display() {
55 if !p.showProgress {

Callers 4

loadFileToBufferAsyncFunction · 0.80
loadFileToBufferFunction · 0.80
loadPipeToBufferAsyncFunction · 0.80
loadPipeToBufferFunction · 0.80

Calls 1

displayMethod · 0.95

Tested by

no test coverage detected