From cd084330e0798258ccb9b1ae06079f08e6239387 Mon Sep 17 00:00:00 2001 From: He Xian Date: Tue, 17 Dec 2024 21:10:43 +0800 Subject: [PATCH] metric: fix format Signed-off-by: He Xian --- v3/metric.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v3/metric.go b/v3/metric.go index 3bdb41c..f3758dc 100644 --- a/v3/metric.go +++ b/v3/metric.go @@ -70,7 +70,7 @@ func (h *apiConfigHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { func printMemStats(w io.Writer, lastGC bool) { var memstats runtime.MemStats runtime.ReadMemStats(&memstats) - fprintf(w, "%-20s: %s ≤ %s\n", "Heap Next GC", + fprintf(w, "%-20s: %s < %s\n", "Heap Next GC", formats.IECBytes(float64(memstats.HeapAlloc)), formats.IECBytes(float64(memstats.NextGC))) fprintf(w, "%-20s: %s ≤ %s\n", "Heap In-use",