From 51efca2c3e613278bf03a546e4f78cfc09dcffb3 Mon Sep 17 00:00:00 2001 From: Mahe Tardy Date: Mon, 4 Nov 2024 11:56:15 +0100 Subject: [PATCH] agent: use in-use instead of inuse for consistency Since I renamed these fields in the previous commit, let's take this opportunity to be consistent with the other fields containing 'in use'. Signed-off-by: Mahe Tardy --- agent/agent.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agent/agent.go b/agent/agent.go index 5ea4b1f..5246059 100644 --- a/agent/agent.go +++ b/agent/agent.go @@ -229,9 +229,9 @@ func handle(conn io.ReadWriter, msg []byte) error { fmt.Fprintf(conn, "heap-objects: %v\n", s.HeapObjects) fmt.Fprintf(conn, "stack-in-use: %v\n", formatBytes(s.StackInuse)) fmt.Fprintf(conn, "stack-sys: %v\n", formatBytes(s.StackSys)) - fmt.Fprintf(conn, "mspan-inuse: %v\n", formatBytes(s.MSpanInuse)) + fmt.Fprintf(conn, "mspan-in-use: %v\n", formatBytes(s.MSpanInuse)) fmt.Fprintf(conn, "mspan-sys: %v\n", formatBytes(s.MSpanSys)) - fmt.Fprintf(conn, "mcache-inuse: %v\n", formatBytes(s.MCacheInuse)) + fmt.Fprintf(conn, "mcache-in-use: %v\n", formatBytes(s.MCacheInuse)) fmt.Fprintf(conn, "mcache-sys: %v\n", formatBytes(s.MCacheSys)) fmt.Fprintf(conn, "other-sys: %v\n", formatBytes(s.OtherSys)) fmt.Fprintf(conn, "gc-sys: %v\n", formatBytes(s.GCSys))