fix 逻辑取反

This commit is contained in:
2024-06-21 15:24:33 +08:00
parent 4cc90ec5cc
commit cf7e757b7d

View File

@@ -84,7 +84,7 @@ public class DeviceTaskAssignmentResponse
public string DeployPlace { get; set; }
public int HeartbeatInterval { get; set; }
public DateTime LastHeartbeatTime { get; set; }
public bool IsOffline
@@ -92,7 +92,7 @@ public class DeviceTaskAssignmentResponse
get
{
if (HeartbeatInterval == 0) return false;
return LastHeartbeatTime.AddSeconds(HeartbeatInterval) > DateTime.Now;
return LastHeartbeatTime.AddSeconds(HeartbeatInterval) < DateTime.Now;
}
}
}