From 9bdcecfec4bf655a1d6b858ca21cdae50d67a1d3 Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Mon, 21 Mar 2022 19:28:26 +0700 Subject: [PATCH] clean logs --- txpool/pool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/txpool/pool.go b/txpool/pool.go index b594746a9..56d250a48 100644 --- a/txpool/pool.go +++ b/txpool/pool.go @@ -1680,7 +1680,7 @@ func (p *TxPool) logStats() { if cacheKeys > 0 { ctx = append(ctx, "cache_keys", cacheKeys) } - ctx = append(ctx, "alloc_mb", m.Alloc/1024/1024, "sys_mb", m.Sys/1024/1024) + ctx = append(ctx, "alloc", common.ByteCount(m.Alloc), "sys", common.ByteCount(m.Sys)) log.Info("[txpool] stat", ctx...) //if ASSERT { //stats := kvcache.DebugStats(p.senders.cache)