Commit a6de89aa by liuzhifei

ratio must gte 0

parent c9064de6
...@@ -41,7 +41,7 @@ func CheckGroupRatio(jsonStr string) error { ...@@ -41,7 +41,7 @@ func CheckGroupRatio(jsonStr string) error {
} }
for name, ratio := range checkGroupRatio { for name, ratio := range checkGroupRatio {
if ratio < 0 { 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 return nil
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment