MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / Active

Method Active

pkg/metrics/pool_stats.go:32–34  ·  view source on GitHub ↗

Active returns an estimate of currently borrowed items (Gets - Puts). May be negative during warm-up before items are returned to the pool.

()

Source from the content-addressed store, hash-verified

30// Active returns an estimate of currently borrowed items (Gets - Puts).
31// May be negative during warm-up before items are returned to the pool.
32func (s PoolStat) Active() int64 {
33 return s.Gets - s.Puts
34}
35
36// poolCounter is the internal per-pool atomic counter pair.
37type poolCounter struct {

Callers 2

stats.goFile · 0.80

Calls

no outgoing calls

Tested by 1