fix statistics log format

v4
suxb201 2 years ago
parent 6259048996
commit 825438679b
  1. 2
      internal/statistics/statistics.go

@ -34,7 +34,7 @@ func Init() {
continue continue
} }
if rdbFileSize > rdbReceivedSize { 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(rdbReceivedSize)/float64(rdbFileSize)*100,
float64(rdbFileSize)/1024/1024/1024, float64(rdbFileSize)/1024/1024/1024,
float64(rdbReceivedSize)/1024/1024/1024) float64(rdbReceivedSize)/1024/1024/1024)

Loading…
Cancel
Save