platform: Display k based bytes

This commit is contained in:
世界
2026-01-08 22:11:40 +08:00
parent 6cd1eb9b94
commit 3890bd2be7
3 changed files with 5 additions and 5 deletions

View File

@@ -71,11 +71,11 @@ func Version() string {
}
func FormatBytes(length int64) string {
return byteformats.FormatBytes(uint64(length))
return byteformats.FormatKBytes(uint64(length))
}
func FormatMemoryBytes(length int64) string {
return byteformats.FormatMemoryBytes(uint64(length))
return byteformats.FormatMemoryKBytes(uint64(length))
}
func FormatDuration(duration int64) string {