Commit 8c99c8ce authored by vrg0's avatar vrg0

5s延时问题 调整监控门限

parent 07e09137
...@@ -64,7 +64,8 @@ func (d *Delayed5s) Run() { ...@@ -64,7 +64,8 @@ func (d *Delayed5s) Run() {
continue continue
} }
if clientNode.Points.Duration-serverNode.Points.Duration > int(1*time.Second) { //Duration单位微妙,转化为纳秒
if (clientNode.Points.Duration-serverNode.Points.Duration)*1e3 > int(1*time.Second) {
d.save.Info(clientNode.Points, serverNode.Points) d.save.Info(clientNode.Points, serverNode.Points)
delete(d.Client, id) delete(d.Client, id)
delete(d.Server, id) delete(d.Server, id)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment