From 34d39fe415ba861b65fc8f121ffad1911860c87e Mon Sep 17 00:00:00 2001 From: BananaLF <864685021@qq.com> Date: Tue, 22 Feb 2022 15:47:27 +0800 Subject: [PATCH] Merge PR: change elapsedTime format ms (#1582) --- libs/tendermint/trace/trace.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/tendermint/trace/trace.go b/libs/tendermint/trace/trace.go index f7014faa66..52d086739a 100644 --- a/libs/tendermint/trace/trace.go +++ b/libs/tendermint/trace/trace.go @@ -114,7 +114,7 @@ func (t *Tracer) Format() string { t.elapsedTime = now.Sub(t.startTime) return fmt.Sprintf("%s<%dms>", t.name, - t.elapsedTime, + t.elapsedTime.Milliseconds(), ) } @@ -124,7 +124,7 @@ func (t *Tracer) Format() string { t.elapsedTime = now.Sub(t.startTime) info := fmt.Sprintf("%s<%dms>", t.name, - t.elapsedTime, + t.elapsedTime.Milliseconds(), ) for i := range t.pins {