mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Improve disk usage display https://github.com/siyuan-note/siyuan/issues/11121
This commit is contained in:
parent
7949cfa1bc
commit
ffb44137f2
7 changed files with 27 additions and 27 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue