MCPcopy Create free account
hub / github.com/GoMudEngine/GoMud / UpdateStats

Function UpdateStats

internal/web/stats.go:38–43  ·  view source on GitHub ↗

Returns a copy of the server stats

(s Stats)

Source from the content-addressed store, hash-verified

36
37// Returns a copy of the server stats
38func UpdateStats(s Stats) {
39 statsLock.RLock()
40 defer statsLock.RUnlock()
41
42 serverStats = s
43}
44
45func (s *Stats) Reset() {
46 s.WebSocketPort = 0

Callers 1

UpdateStatsMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected