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