open-nomad/helper/math.go

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
203 B
Go
Raw Normal View History

// These functions are coming from consul/lib/math.go
package helper
func MaxInt(a, b int) int {
if a > b {
return a
}
return b
}
func MinInt(a, b int) int {
if a > b {
return b
}
return a
}