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

Method GetCurrentLagDuration

go/base/context.go:593–595  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

591}
592
593func (mctx *MigrationContext) GetCurrentLagDuration() time.Duration {
594 return time.Duration(atomic.LoadInt64(&mctx.CurrentLag))
595}
596
597func (mctx *MigrationContext) GetProgressPct() float64 {
598 return math.Float64frombits(atomic.LoadUint64(&mctx.currentProgress))

Callers 2

printStatusMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected