MCPcopy Create free account
hub / github.com/JordanCoin/codemap / clampBudget

Function clampBudget

config/config.go:92–100  ·  view source on GitHub ↗
(v, def, max int)

Source from the content-addressed store, hash-verified

90}
91
92func clampBudget(v, def, max int) int {
93 if v <= 0 {
94 return def
95 }
96 if max > 0 && v > max {
97 return max
98 }
99 return v
100}
101
102func clampRange(v, def, min, max int) int {
103 if v <= 0 {

Callers 2

DiffOutputBytesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected