MCPcopy
hub / github.com/kopia/kopia / maybeOutput

Method maybeOutput

cli/cli_progress.go:126–134  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

124}
125
126func (p *cliProgress) maybeOutput() {
127 if !p.uploading.Load() {
128 return
129 }
130
131 if p.outputThrottle.ShouldOutput(p.progressUpdateInterval) {
132 p.output(defaultColor, "")
133 }
134}
135
136func (p *cliProgress) output(col *color.Color, msg string) {
137 p.outputMutex.Lock()

Callers 4

FinishedHashingFileMethod · 0.95
UploadedBytesMethod · 0.95
HashedBytesMethod · 0.95
CachedFileMethod · 0.95

Calls 3

outputMethod · 0.95
ShouldOutputMethod · 0.80
LoadMethod · 0.65

Tested by

no test coverage detected