1
This commit is contained in:
@@ -482,7 +482,7 @@ func HandleCheckTcpHeart(t *TcpClient, key string) {
|
||||
if !utils.IsTimeZero(statusTime) {
|
||||
//1分钟内没心跳判断打印机掉线了
|
||||
if time.Now().Sub(statusTime) > time.Second*60 {
|
||||
globals.SugarLogger.Debugf("超过一分十秒没有心跳的打印机[%s]", key)
|
||||
globals.SugarLogger.Debugf("超过一分十秒没有心跳的打印机[%s],当前心跳时间: %s ,上一次心跳时间 : %s", key, utils.Time2TimeStr(time.Now()), utils.Time2TimeStr(statusTime))
|
||||
changePrinterStatus(key, printerStatusOffline)
|
||||
delete(t.TimeoutMap, key)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user