MCPcopy Create free account
hub / github.com/cozystack/cozystack / abs

Function abs

internal/fluxshardoperator/placement.go:196–201  ·  view source on GitHub ↗
(v int)

Source from the content-addressed store, hash-verified

194}
195
196func abs(v int) int {
197 if v < 0 {
198 return -v
199 }
200 return v
201}
202
203// Autosizing parameters: shards are sized by HelmRelease count, capped by
204// tenant count (more shards than tenants is useless). The 100 HR/shard target

Callers 2

rebalanceFunction · 0.85

Calls

no outgoing calls