fix: 修正了运行时间的算法
This commit is contained in:
parent
150c968f0e
commit
ccb764d4f5
|
@ -631,8 +631,8 @@ CalculateAndShowSpan(ExitReason := "", ExitCode := "") {
|
||||||
timestamps.Push(match[])
|
timestamps.Push(match[])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
; 直接取最早(第1个)和最晚(最后1个)时间戳(日志已按时间顺序追加)
|
; 直接取最早(正式运行时的第5个)和最晚(最后1个)时间戳(日志已按时间顺序追加)
|
||||||
earliestTimeStr := timestamps[1]
|
earliestTimeStr := timestamps[5]
|
||||||
latestTimeStr := timestamps[timestamps.Length]
|
latestTimeStr := timestamps[timestamps.Length]
|
||||||
; 转换为秒数
|
; 转换为秒数
|
||||||
earliestSeconds := TimeToSeconds(earliestTimeStr)
|
earliestSeconds := TimeToSeconds(earliestTimeStr)
|
||||||
|
|
Loading…
Reference in New Issue