Skip to content
New issue

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

判断客户端离线方式 #49

Open
niliovo opened this issue Jan 2, 2025 · 1 comment
Open

判断客户端离线方式 #49

niliovo opened this issue Jan 2, 2025 · 1 comment

Comments

@niliovo
Copy link
Contributor

niliovo commented Jan 2, 2025

目前的客户端在线离线方式的判断,在启用时间同步的情况下,如果客户端timedatectl 输出的 Universal timeRTC time 间隔大于 前端判定 status: (nowtime - host.TimeStamp <= 10) ? 1 : 0 的10秒,则会显示离线,是否考虑将判断方式改为 上报则为在线,一段时间(例如30秒,添加到config.json 变量中)不上报为离线

目前客户端宿主机(Debian)解决方法,启用自动时间同步

apt install chrony
systemctl start chrony
systemctl enable chrony
timedatectl set-ntp true
@Sleepstars
Copy link

apt install systemd-timesyncd
一行就可以了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants