Skip to content

Commit 102a933

Browse files
Charlie YangCharlie Yang
Charlie Yang
authored and
Charlie Yang
committedNov 19, 2019
fix bug
1 parent f1dc6de commit 102a933

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎heatbeat.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func SendUsageViaZK(dt string) {
111111
ZKSetAndLog(DevicePropertyPath("mem"), []byte(fmt.Sprintf("%f", mem.Used/mem.Total)), ver)
112112

113113
heartbeat := fmt.Sprintf("%d", time.Now().Unix())
114-
ZKSetAndLog(DevicePropertyPath("heatbeat"), []byte(heartbeat), ver)
114+
ZKSetAndLog(DevicePropertyPath("heartbeat"), []byte(heartbeat), ver)
115115
}
116116

117117
func SendUsageViaAPI() {
@@ -172,7 +172,6 @@ func main() {
172172
log.Printf("Start heatbeating as an edge device...")
173173
RegisterDevice()
174174
dt := WriteBasicInfoViaZK()
175-
SendUsageViaZK(dt)
176175
f = func() {
177176
SendUsageViaZK(dt)
178177
}

0 commit comments

Comments
 (0)
Please sign in to comment.