Skip to content

Commit

Permalink
🎨 调整数据同步接入第三方存储服务 #6530
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Nov 9, 2022
1 parent de3a002 commit 6261894
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions kernel/model/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -378,14 +378,21 @@ func ListCloudSyncDir() (syncDirs []*Sync, hSize string, err error) {

for _, d := range dirs {
dirSize := d.Size
syncDirs = append(syncDirs, &Sync{
sync := &Sync{
Size: dirSize,
HSize: humanize.Bytes(uint64(dirSize)),
HSize: "-",
Updated: d.Updated,
CloudName: d.Name,
})
}
if conf.ProviderSiYuan == Conf.Sync.Provider {
sync.HSize = humanize.Bytes(uint64(dirSize))
}
syncDirs = append(syncDirs, sync)
}
hSize = "-"
if conf.ProviderSiYuan == Conf.Sync.Provider {
hSize = humanize.Bytes(uint64(size))
}
hSize = humanize.Bytes(uint64(size))
return
}

Expand Down

0 comments on commit 6261894

Please sign in to comment.