diff --git a/DoroHelper.ahk b/DoroHelper.ahk index a3e4aa4..d1b9404 100644 --- a/DoroHelper.ahk +++ b/DoroHelper.ahk @@ -631,8 +631,8 @@ CalculateAndShowSpan(ExitReason := "", ExitCode := "") { timestamps.Push(match[]) } } - ; 直接取最早(第1个)和最晚(最后1个)时间戳(日志已按时间顺序追加) - earliestTimeStr := timestamps[1] + ; 直接取最早(正式运行时的第5个)和最晚(最后1个)时间戳(日志已按时间顺序追加) + earliestTimeStr := timestamps[5] latestTimeStr := timestamps[timestamps.Length] ; 转换为秒数 earliestSeconds := TimeToSeconds(earliestTimeStr)