Browse Source

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

Daniel 7 months ago
parent
commit
66d7a6cd25
1 changed files with 1 additions and 1 deletions
  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,