This commit is contained in:
Daniel 2024-04-24 20:05:42 +08:00
parent 7949cfa1bc
commit ffb44137f2
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
7 changed files with 27 additions and 27 deletions

View file

@ -851,7 +851,7 @@ func InitBoxes() {
var dbSize string
if dbFile, err := os.Stat(util.DBPath); nil == err {
dbSize = humanize.Bytes(uint64(dbFile.Size()))
dbSize = humanize.BytesCustomCeil(uint64(dbFile.Size()), 2)
}
logging.LogInfof("database size [%s], tree/block count [%d/%d]", dbSize, treenode.CountTrees(), treenode.CountBlocks())
}