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

Function PrettifyDurationOutput

go/base/utils.go:24–29  ·  view source on GitHub ↗
(d time.Duration)

Source from the content-addressed store, hash-verified

22)
23
24func PrettifyDurationOutput(d time.Duration) string {
25 if d < time.Second {
26 return "0s"
27 }
28 return prettifyDurationRegexp.ReplaceAllString(d.String(), "")
29}
30
31func FileExists(fileName string) bool {
32 if _, err := os.Stat(fileName); err == nil {

Callers 2

getMigrationETAMethod · 0.92
printStatusMethod · 0.92

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…