mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-02 11:47:36 +08:00
[REV] change value type for KeyIntervalMS and KeyBaseEjectionTimeMS
This commit is contained in:
parent
f8d6749eff
commit
f2b67359d5
@ -151,11 +151,11 @@ func GetOptionValues(kind string, sr map[string]interface{}) interface{} {
|
|||||||
if in, ok := sr[KeyIntervalMS]; ok {
|
if in, ok := sr[KeyIntervalMS]; ok {
|
||||||
w, err := strconv.Atoi(in.(string))
|
w, err := strconv.Atoi(in.(string))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 10000
|
return int64(10000)
|
||||||
}
|
}
|
||||||
return w
|
return int64(w)
|
||||||
}
|
}
|
||||||
return 10000
|
return int64(10000)
|
||||||
case KeyConsecutiveErrors:
|
case KeyConsecutiveErrors:
|
||||||
if in, ok := sr[KeyConsecutiveErrors]; ok {
|
if in, ok := sr[KeyConsecutiveErrors]; ok {
|
||||||
w, err := strconv.Atoi(in.(string))
|
w, err := strconv.Atoi(in.(string))
|
||||||
@ -169,11 +169,11 @@ func GetOptionValues(kind string, sr map[string]interface{}) interface{} {
|
|||||||
if in, ok := sr[KeyBaseEjectionTimeMS]; ok {
|
if in, ok := sr[KeyBaseEjectionTimeMS]; ok {
|
||||||
w, err := strconv.Atoi(in.(string))
|
w, err := strconv.Atoi(in.(string))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 30000
|
return int64(30000)
|
||||||
}
|
}
|
||||||
return w
|
return int64(w)
|
||||||
}
|
}
|
||||||
return 30000
|
return int64(30000)
|
||||||
case KeyMaxEjectionPercent:
|
case KeyMaxEjectionPercent:
|
||||||
if in, ok := sr[KeyMaxEjectionPercent]; ok {
|
if in, ok := sr[KeyMaxEjectionPercent]; ok {
|
||||||
w, err := strconv.Atoi(in.(string))
|
w, err := strconv.Atoi(in.(string))
|
||||||
|
Loading…
Reference in New Issue
Block a user