From 285b219e7f61e791377bc463204306ec3049583c Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Tue, 11 Jul 2023 21:00:33 +0800 Subject: [PATCH] :art: Improve cloud sync API count display --- kernel/model/repository.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/model/repository.go b/kernel/model/repository.go index 31ca148e3..9ab86600d 100644 --- a/kernel/model/repository.go +++ b/kernel/model/repository.go @@ -1779,8 +1779,8 @@ func GetCloudSpace() (s *Sync, b *Backup, hSize, hAssetSize, hTotalSize, hExchan hExchangeSize = humanize.Bytes(uint64(Conf.User.UserSiYuanPointExchangeRepoSize)) hTrafficUploadSize = humanize.Bytes(uint64(Conf.User.UserTrafficUpload)) hTrafficDownloadSize = humanize.Bytes(uint64(Conf.User.UserTrafficDownload)) - hTrafficAPIGet = fmt.Sprintf("%d", int(Conf.User.UserTrafficAPIGet)) - hTrafficAPIPut = fmt.Sprintf("%d", int(Conf.User.UserTrafficAPIPut)) + hTrafficAPIGet = humanize.SIWithDigits(Conf.User.UserTrafficAPIGet, 2, "") + hTrafficAPIPut = humanize.SIWithDigits(Conf.User.UserTrafficAPIPut, 2, "") } return }