aa
This commit is contained in:
@@ -287,8 +287,8 @@ func (t *TcpClient) HandleCheckTcpHeart(key string) {
|
||||
default:
|
||||
statusTime := t.getPrintStatusTime(key)
|
||||
if !utils.IsTimeZero(statusTime) {
|
||||
//2分钟内没心跳判断打印机掉线了
|
||||
if time.Now().Sub(statusTime) > time.Minute+time.Second*3 {
|
||||
//1分钟内没心跳判断打印机掉线了
|
||||
if time.Now().Sub(statusTime) > time.Minute+time.Second*10 {
|
||||
changePrinterStatus(key, printerStatusOffline)
|
||||
globals.SugarLogger.Debugf("HandleCheckTcpHeart clear...")
|
||||
//t.clear(key)
|
||||
|
||||
Reference in New Issue
Block a user