MCPcopy
hub / github.com/tinode/chat / base10Version

Function base10Version

server/utils.go:330–335  ·  view source on GitHub ↗

Version as a base-10 number. Used by monitoring.

(hex int)

Source from the content-addressed store, hash-verified

328
329// Version as a base-10 number. Used by monitoring.
330func base10Version(hex int) int64 {
331 major := hex >> 16 & 0xFF
332 minor := hex >> 8 & 0xFF
333 trailer := hex & 0xFF
334 return int64(major*10000 + minor*100 + trailer)
335}
336
337func versionToString(vers int) string {
338 str := strconv.Itoa(vers>>16) + "." + strconv.Itoa((vers>>8)&0xff)

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…