Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/prometheus/client_golang
/ maxInt
Function
maxInt
prometheus/internal/difflib.go:36–41 ·
view source on GitHub ↗
(a, b int)
Source
from the content-addressed store, hash-verified
34
}
35
36
func
maxInt(a, b int) int {
37
if
a > b {
38
return
a
39
}
40
return
b
41
}
42
43
func
calculateRatio(matches, length int) float64 {
44
if
length > 0 {
Callers
1
GetGroupedOpCodes
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected