ratio must gte 0

This commit is contained in:
liuzhifei
2024-09-20 18:33:17 +08:00
parent 3d33079de0
commit e0f19e5ed7

View File

@@ -41,7 +41,7 @@ func CheckGroupRatio(jsonStr string) error {
}
for name, ratio := range checkGroupRatio {
if ratio < 0 {
return errors.New("group ratio must be greater than 0: " + name)
return errors.New("group ratio must be not less than 0: " + name)
}
}
return nil