We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
in device.go , 在设备离线情况下,ninactive 值更新存在问题。 now 和 dev.active 的差值会连续3次判断成立 -》 ninactive + 1
case <-ticker.C: now := time.Now() if now.Sub(dev.active) > heartbeatInterval*3/2 { if dev.id == "" { return } log.Error().Msgf("Inactive device in long time: %s", dev.id) if ninactive > 1 { log.Error().Msgf("Inactive 3 times, now kill it: %s", dev.id) return } ninactive = ninactive + 1 }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Environment
rtty
rttys
Description
in device.go , 在设备离线情况下,ninactive 值更新存在问题。
now 和 dev.active 的差值会连续3次判断成立 -》 ninactive + 1
The text was updated successfully, but these errors were encountered: