test
This commit is contained in:
parent
2cec7a3d7e
commit
9e6180a3f4
@ -400,6 +400,10 @@ func MakeMaX(cr *core.Core, cl *core.Candle, count int) (error, int) {
|
||||
}
|
||||
ljs, _ := json.Marshal(cdl.List)
|
||||
fmt.Println("makeMax: ljs: ", string(ljs))
|
||||
if len(cdl.List) < count {
|
||||
err := errors.New("由于sortedSet容量有限,没有足够的元素数量来计算 maX, setName: " + setName + " ct: " + ToString(ct) + "count: " + ToString(count))
|
||||
return err, int(float64(count) - ct)
|
||||
}
|
||||
for _, v := range cdl.List {
|
||||
curLast, err := strconv.ParseFloat(v.Data[4].(string), 64)
|
||||
if err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user