open-nomad/helper/math.go

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
}