mirror of
https://github.com/woodchen-ink/proxy-go.git
synced 2025-07-18 00:21:56 +08:00
在 PathMetrics 的 ToJSON 方法中添加 LastAccessTime 字段,确保 JSON 输出包含最后访问时间信息。
This commit is contained in:
parent
7e81e90113
commit
818dd11dda
@ -79,7 +79,8 @@ func (p *PathMetrics) ToJSON() PathMetricsJSON {
|
||||
RequestCount: p.RequestCount.Load(),
|
||||
ErrorCount: p.ErrorCount.Load(),
|
||||
BytesTransferred: p.BytesTransferred.Load(),
|
||||
AvgLatency: p.AvgLatency,
|
||||
AvgLatency: p.AvgLatency,
|
||||
LastAccessTime: p.LastAccessTime.Load(),
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user