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