🎨调整客户端检测离线时间为三分钟
All checks were successful
continuous-integration/drone/tag Build is passing

This commit is contained in:
coward 2024-06-07 10:46:22 +08:00
parent c1d81b9af5
commit 0d28bd3445

View File

@ -373,7 +373,7 @@ func (clients) Status(c *gin.Context) {
ipAllocation += iaip.String() + "," ipAllocation += iaip.String() + ","
} }
ipAllocation = strings.TrimRight(ipAllocation, ",") ipAllocation = strings.TrimRight(ipAllocation, ",")
isOnline := time.Since(p.LastHandshakeTime).Minutes() < 1 isOnline := time.Since(p.LastHandshakeTime).Minutes() < 3
data = append(data, vo.ClientStatus{ data = append(data, vo.ClientStatus{
ID: clientInfo.Id, ID: clientInfo.Id,
Name: clientInfo.Name, Name: clientInfo.Name,