mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-06 05:30:05 +00:00
🚸 使用服务器端时间判断机器离线
This commit is contained in:
@@ -175,7 +175,7 @@ func main() {
|
||||
for _, s := range dao.ServerList {
|
||||
in := s.State.NetInTransfer - uint64(s.PrevHourlyTransferIn)
|
||||
out := s.State.NetOutTransfer - uint64(s.PrevHourlyTransferOut)
|
||||
if in > 0 && out > 0 {
|
||||
if in > 0 || out > 0 {
|
||||
tx := model.Transfer{
|
||||
ServerID: s.ID,
|
||||
In: in,
|
||||
|
||||
Reference in New Issue
Block a user