提交记录修改Core/Servicers/Instances/Main.cs+8 −4看文件
| @@ -173,7 +173,7 @@ namespace Core.Servicers.Instances | ||
| 173 | 173 | config = appConfig.GetConfig(); |
| 174 | 174 | UpdateConfigIgnoreProcess(); |
| 175 | 175 | |
| 176 | 删除: | |
| 176 | 新增: | |
| 177 | 177 | |
| 178 | 178 | // 启动睡眠监测 |
| 179 | 179 | sleepdiscover.Start(); |
| @@ -431,9 +431,15 @@ namespace Core.Servicers.Instances | ||
| 431 | 431 | |
| 432 | 432 | // 更新计时 |
| 433 | 433 | TimeSpan timeSpan = DateTime.Now - time; |
| 434 | 删除: | |
| 435 | 434 | int seconds = (int)timeSpan.TotalSeconds; |
| 436 | 435 | |
| 436 | 新增: if (seconds > 3600) | |
| 437 | 新增: { | |
| 438 | 新增: Logger.Warn($"计时异常。start:{time},process:{app},duration:{seconds},status:{sleepStatus}"); | |
| 439 | 新增: activeStartTime = DateTime.Now; | |
| 440 | 新增: return; | |
| 441 | 新增: } | |
| 442 | 新增: | |
| 437 | 443 | // 如果是休眠状态要减去5分钟 |
| 438 | 444 | if (sleepStatus == SleepStatus.Sleep) |
| 439 | 445 | { |
| @@ -446,8 +452,6 @@ namespace Core.Servicers.Instances | ||
| 446 | 452 | |
| 447 | 453 | // 关联进程更新 |
| 448 | 454 | HandleLinks(app, seconds, time); |
| 449 | 删除: | |
| 450 | 删除: //Logger.Info("status:" + sleepStatus + ",process:" + app + ",seconds:" + seconds + ",start:" + activeStartTime.ToString() + ",end:" + DateTime.Now.ToString() + ",time:" + time.ToString()); | |
| 451 | 455 | } |
| 452 | 456 | |
| 453 | 457 | activeStartTime = DateTime.Now; |

