mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-09 20:10:27 +08:00
节点状态上报时增加时间戳字段
This commit is contained in:
@@ -109,6 +109,7 @@ func (this *NodeStatusExecutor) update() {
|
|||||||
cacheSpaceTR.End()
|
cacheSpaceTR.End()
|
||||||
|
|
||||||
status.UpdatedAt = time.Now().Unix()
|
status.UpdatedAt = time.Now().Unix()
|
||||||
|
status.Timestamp = status.UpdatedAt
|
||||||
|
|
||||||
// 发送数据
|
// 发送数据
|
||||||
jsonData, err := json.Marshal(status)
|
jsonData, err := json.Marshal(status)
|
||||||
|
|||||||
Reference in New Issue
Block a user