🚸 使用服务器端时间判断机器离线

This commit is contained in:
naiba
2021-07-16 11:14:07 +08:00
parent 321ccce931
commit 8f06d90c30
9 changed files with 34 additions and 14 deletions

View File

@@ -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,