From 818dd11dda5fdccab0957a612bb3b4ca7ff09bcb Mon Sep 17 00:00:00 2001 From: wood chen Date: Fri, 11 Jul 2025 20:45:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=20PathMetrics=20=E7=9A=84=20ToJSON=20?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E4=B8=AD=E6=B7=BB=E5=8A=A0=20LastAccessTime?= =?UTF-8?q?=20=E5=AD=97=E6=AE=B5=EF=BC=8C=E7=A1=AE=E4=BF=9D=20JSON=20?= =?UTF-8?q?=E8=BE=93=E5=87=BA=E5=8C=85=E5=90=AB=E6=9C=80=E5=90=8E=E8=AE=BF?= =?UTF-8?q?=E9=97=AE=E6=97=B6=E9=97=B4=E4=BF=A1=E6=81=AF=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/models/metrics.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/models/metrics.go b/internal/models/metrics.go index 2bb68a2..7045e84 100644 --- a/internal/models/metrics.go +++ b/internal/models/metrics.go @@ -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(), } }