From 825438679b0ccb02d192e2f92723437dcdda28a2 Mon Sep 17 00:00:00 2001 From: suxb201 Date: Sat, 2 Jul 2022 22:25:21 +0800 Subject: [PATCH] fix statistics log format --- internal/statistics/statistics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/statistics/statistics.go b/internal/statistics/statistics.go index 17d3188..1d22a8e 100644 --- a/internal/statistics/statistics.go +++ b/internal/statistics/statistics.go @@ -34,7 +34,7 @@ func Init() { continue } if rdbFileSize > rdbReceivedSize { - log.Infof("receiving rdb. percent=[%.2f]%, rdbFileSize=[%.3f]G, rdbReceivedSize=[%.3f]G", + log.Infof("receiving rdb. percent=[%.2f]%%, rdbFileSize=[%.3f]G, rdbReceivedSize=[%.3f]G", float64(rdbReceivedSize)/float64(rdbFileSize)*100, float64(rdbFileSize)/1024/1024/1024, float64(rdbReceivedSize)/1024/1024/1024)