From 241bd421561d9dab9244e3acd5ea808b17f469ce Mon Sep 17 00:00:00 2001 From: Jay Date: Wed, 10 Oct 2018 01:58:45 +0800 Subject: [PATCH] change data --- main.go | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/main.go b/main.go index d24ecff..308a733 100644 --- a/main.go +++ b/main.go @@ -111,18 +111,18 @@ func PrintMemUsage() { fmt.Printf("\t NextGC = %v MiB\n", bToMb(m.NextGC)) obj := map[string]interface{}{ - "Alloc": fmt.Sprintf("%v MiB", bToMb(m.Alloc)), - "Sys": fmt.Sprintf("%v MiB", bToMb(m.Sys)), - "HeapAlloc": fmt.Sprintf("%v MiB", bToMb(m.HeapAlloc)), - "HeapSys": fmt.Sprintf("%v MiB", bToMb(m.HeapSys)), - "HeapIdle": fmt.Sprintf("%v MiB", bToMb(m.HeapIdle)), - "HeapInuse": fmt.Sprintf("%v MiB", bToMb(m.HeapInuse)), - "HeapReleased": fmt.Sprintf("%v MiB", bToMb(m.HeapReleased)), - "StackInuse": fmt.Sprintf("%v MiB", bToMb(m.StackInuse)), - "StackSys": fmt.Sprintf("%v MiB", bToMb(m.StackSys)), - "GCSys": fmt.Sprintf("%v MiB", bToMb(m.GCSys)), - "NextGC": fmt.Sprintf("%v MiB", bToMb(m.NextGC)), - "NumGC": fmt.Sprintf("%v", m.NumGC), + "Alloc": m.Alloc, + "Sys": m.Sys, + "HeapAlloc": m.HeapAlloc, + "HeapSys": m.HeapSys, + "HeapIdle": m.HeapIdle, + "HeapInuse": m.HeapInuse, + "HeapReleased": m.HeapReleased, + "StackInuse": m.StackInuse, + "StackSys": m.StackSys, + "GCSys": m.GCSys, + "NextGC": m.NextGC, + "NumGC": m.NumGC, } es.PutLog("memory", obj)