Skip to content

判断客户端离线方式 #49

@niliovo

Description

@niliovo

目前的客户端在线离线方式的判断,在启用时间同步的情况下,如果客户端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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions