Add option to control heartbeat frequency
This commit is contained in:
parent
9029226adc
commit
908218ebac
|
@ -17,6 +17,8 @@ var (
|
|||
clientList []Client
|
||||
clientIDs int = 0
|
||||
|
||||
heartbeatRate time.Duration = 15
|
||||
|
||||
isUsingJSONParameter bool
|
||||
clientJSONPath string = "/.config/tiamat/clients.json"
|
||||
)
|
||||
|
@ -139,7 +141,7 @@ func Heartbeat(ID int) {
|
|||
return
|
||||
}
|
||||
|
||||
time.Sleep(time.Second * 10)
|
||||
time.Sleep(time.Second * heartbeatRate)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue