add lastUpdate to candle and max
This commit is contained in:
parent
49b7411728
commit
9742ded5b3
@ -215,6 +215,7 @@ func (candle *Candle) PushToWriteLogChan(cr *Core) error {
|
||||
ncd, _ := candle.ToStruct(cr)
|
||||
fmt.Println("ncd: ", ncd)
|
||||
cd, _ := json.Marshal(ncd)
|
||||
candle = ncd
|
||||
wg := WriteLog{
|
||||
Content: cd,
|
||||
Tag: "sardine.log.candle." + candle.Period,
|
||||
|
1
maX.go
1
maX.go
@ -102,6 +102,7 @@ func (mx *MaX) PushToWriteLogChan(cr *Core) error {
|
||||
mx0.LastUpdate = mx.LastUpdate
|
||||
hs := HashString(did)
|
||||
md, _ := json.Marshal(mx0)
|
||||
mx = &mx0
|
||||
wg := WriteLog{
|
||||
Content: md,
|
||||
Tag: "sardine.log.maX." + mx0.Period,
|
||||
|
Loading…
x
Reference in New Issue
Block a user