mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-27 11:58:49 +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
|
|
@ -90,7 +90,7 @@ func (box *Box) docFromFileInfo(fileInfo *FileInfo, ial map[string]string) (ret
|
|||
t, _ := time.ParseInLocation("20060102150405", ret.ID[:14], time.Local)
|
||||
ret.CTime = t.Unix()
|
||||
ret.HCtime = t.Format("2006-01-02 15:04:05")
|
||||
ret.HSize = humanize.Bytes(ret.Size)
|
||||
ret.HSize = humanize.BytesCustomCeil(ret.Size, 2)
|
||||
|
||||
mTime := t
|
||||
if updated := ial["updated"]; "" != updated {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue