ratio must gte 0

This commit is contained in:
liuzhifei 2024-09-20 18:33:17 +08:00
parent c9064de677
commit a6de89aab3

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