mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-12-25 15:09:05 +01:00
Fix for missing math.MaxInt in go 1.16
This commit is contained in:
parent
70ebd2f36d
commit
df31df149b
@ -53,7 +53,7 @@ func minfunc(args ...interface{}) (interface{}, error) {
|
|||||||
}
|
}
|
||||||
return s, nil
|
return s, nil
|
||||||
case []int:
|
case []int:
|
||||||
var s int = math.MaxInt
|
var s int = int(math.MaxInt32)
|
||||||
for _, x := range values {
|
for _, x := range values {
|
||||||
if x < s {
|
if x < s {
|
||||||
s = x
|
s = x
|
||||||
|
Loading…
Reference in New Issue
Block a user