Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: 调整数据同步接入第三方存储服务 https://github.com/siyuan-note/siyuan/issues/6530

Liang Dingde3a00207496
diff --git a/kernel/model/repository.go b/kernel/model/repository.go
index 552befa63a..eed555017b 100644
--- a/kernel/model/repository.go
+++ b/kernel/model/repository.go
@@ -1086,7 +1086,7 @@ func GetCloudSpace() (s *Sync, b *Backup, hSize, hAssetSize, hTotalSize, hTraffi
syncUpdated := stat.Sync.Updated
s = &Sync{
Size: syncSize,
- HSize: humanize.Bytes(uint64(syncSize)),
+ HSize: "-",
Updated: syncUpdated,
}
@@ -1094,18 +1094,22 @@ func GetCloudSpace() (s *Sync, b *Backup, hSize, hAssetSize, hTotalSize, hTraffi
backupUpdated := stat.Backup.Updated
b = &Backup{
Size: backupSize,
- HSize: humanize.Bytes(uint64(backupSize)),
+ HSize: "-",
Updated: backupUpdated,
}
assetSize := stat.AssetSize
totalSize := syncSize + backupSize + assetSize
- hAssetSize = humanize.Bytes(uint64(assetSize))
- hSize = humanize.Bytes(uint64(totalSize))
+ hAssetSize = "-"
+ hSize = "-"
hTotalSize = "-"
hTrafficUploadSize = "-"
hTrafficDownloadSize = "-"
if conf.ProviderSiYuan == Conf.Sync.Provider {
+ s.HSize = humanize.Bytes(uint64(syncSize))
+ b.HSize = humanize.Bytes(uint64(backupSize))
+ hAssetSize = humanize.Bytes(uint64(assetSize))
+ hSize = humanize.Bytes(uint64(totalSize))
hTotalSize = humanize.Bytes(uint64(Conf.User.UserSiYuanRepoSize))
hTrafficUploadSize = humanize.Bytes(uint64(Conf.User.UserTrafficUpload))
hTrafficDownloadSize = humanize.Bytes(uint64(Conf.User.UserTrafficDownload))