浏览代码

:art: Assets stat in IBytes https://github.com/siyuan-note/siyuan/issues/13374

Daniel 7 月之前
父节点
当前提交
66d7a6cd25
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      kernel/api/asset.go

+ 1 - 1
kernel/api/asset.go

@@ -86,7 +86,7 @@ func statAsset(c *gin.Context) {
 
 	ret.Data = map[string]interface{}{
 		"size":     info.Size(),
-		"hSize":    humanize.BytesCustomCeil(uint64(info.Size()), 2),
+		"hSize":    humanize.IBytesCustomCeil(uint64(info.Size()), 2),
 		"created":  created,
 		"hCreated": hCreated,
 		"updated":  updated,