From 6673eeb0a43ce9da87605aa3dfd6adbcaa00a6d5 Mon Sep 17 00:00:00 2001 From: Mikhail Alpinskiy Date: Wed, 27 Nov 2024 18:53:55 +0300 Subject: [PATCH] Report top duration query range --- internal/api/http_router.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/api/http_router.go b/internal/api/http_router.go index bbbdd67fa..21ae55843 100644 --- a/internal/api/http_router.go +++ b/internal/api/http_router.go @@ -226,8 +226,8 @@ func DumpQueryTopDuration(r *httpRequestHandler) { } w.Write([]byte(v.expr)) w.Write([]byte(fmt.Sprintf( - "\n# duration=%v token=%s proto=%s\n\n", - v.duration, v.user, protocol))) + "\n# duration=%v from=%d to=%d range=%d token=%s proto=%s\n\n", + v.duration, v.start, v.end, v.end-v.start, v.user, protocol))) } }