MCPcopy
hub / github.com/github/gh-ost / SetProgressPct

Method SetProgressPct

go/base/context.go:601–603  ·  view source on GitHub ↗
(progressPct float64)

Source from the content-addressed store, hash-verified

599}
600
601func (mctx *MigrationContext) SetProgressPct(progressPct float64) {
602 atomic.StoreUint64(&mctx.currentProgress, math.Float64bits(progressPct))
603}
604
605func (mctx *MigrationContext) GetETADuration() time.Duration {
606 return time.Duration(atomic.LoadInt64(&mctx.etaNanoseonds))

Callers 2

printStatusMethod · 0.80

Calls

no outgoing calls

Tested by 1