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

@ -543,13 +543,13 @@ func ListCloudSyncDir() (syncDirs []*Sync, hSize string, err error) {
CloudName: d.Name,
}
if conf.ProviderSiYuan == Conf.Sync.Provider {
sync.HSize = humanize.Bytes(uint64(dirSize))
sync.HSize = humanize.BytesCustomCeil(uint64(dirSize), 2)
}
syncDirs = append(syncDirs, sync)
}
hSize = "-"
if conf.ProviderSiYuan == Conf.Sync.Provider {
hSize = humanize.Bytes(uint64(size))
hSize = humanize.BytesCustomCeil(uint64(size), 2)
}
return
}