Explorar o código

优化环境系统超时看门狗频繁重启的问题

james %!s(int64=2) %!d(string=hai) anos
pai
achega
5b83f5f29b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      AGBoxDog/dogcore.cpp

+ 1 - 1
AGBoxDog/dogcore.cpp

@@ -163,7 +163,7 @@ void DogCore::time_out()
             }
             }
         }
         }
         if((agBoxShm->processStatus[5].t_time>0)
         if((agBoxShm->processStatus[5].t_time>0)
-                &&(static_cast<int>(chkTime1-agBoxShm->processStatus[5].t_time)>120)){
+                &&(static_cast<int>(chkTime1-agBoxShm->processStatus[5].t_time)>300)){
             if(system("killall agDP0005")!=-1){
             if(system("killall agDP0005")!=-1){
                 if(system("/root/bin/agDP0005 &")!=-1){
                 if(system("/root/bin/agDP0005 &")!=-1){
                     logThread->appendData(QString("[%1 agBoxDog %2] agDP0005 time out: %3")
                     logThread->appendData(QString("[%1 agBoxDog %2] agDP0005 time out: %3")