🎨 Improve cloud sync API count display

This commit is contained in:
Daniel 2023-07-11 21:00:33 +08:00
parent bd95fdc5d7
commit 285b219e7f
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -1779,8 +1779,8 @@ func GetCloudSpace() (s *Sync, b *Backup, hSize, hAssetSize, hTotalSize, hExchan
hExchangeSize = humanize.Bytes(uint64(Conf.User.UserSiYuanPointExchangeRepoSize)) hExchangeSize = humanize.Bytes(uint64(Conf.User.UserSiYuanPointExchangeRepoSize))
hTrafficUploadSize = humanize.Bytes(uint64(Conf.User.UserTrafficUpload)) hTrafficUploadSize = humanize.Bytes(uint64(Conf.User.UserTrafficUpload))
hTrafficDownloadSize = humanize.Bytes(uint64(Conf.User.UserTrafficDownload)) hTrafficDownloadSize = humanize.Bytes(uint64(Conf.User.UserTrafficDownload))
hTrafficAPIGet = fmt.Sprintf("%d", int(Conf.User.UserTrafficAPIGet)) hTrafficAPIGet = humanize.SIWithDigits(Conf.User.UserTrafficAPIGet, 2, "")
hTrafficAPIPut = fmt.Sprintf("%d", int(Conf.User.UserTrafficAPIPut)) hTrafficAPIPut = humanize.SIWithDigits(Conf.User.UserTrafficAPIPut, 2, "")
} }
return return
} }