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

Function newProgressTracker

io.go:28–38  ·  view source on GitHub ↗
(total int64, showProgress bool)

Source from the content-addressed store, hash-verified

26}
27
28func newProgressTracker(total int64, showProgress bool) *progressTracker {
29 return &progressTracker{
30 total: total,
31 current: 0,
32 lastUpdate: time.Now(),
33 updateEvery: 5000, // update every 5000 lines
34 lineCount: 0,
35 showProgress: showProgress,
36 startTime: time.Now(),
37 }
38}
39
40func (p *progressTracker) increment(bytes int64) {
41 if !p.showProgress {

Callers 4

loadFileToBufferAsyncFunction · 0.85
loadFileToBufferFunction · 0.85
loadPipeToBufferAsyncFunction · 0.85
loadPipeToBufferFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected