1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-23 12:27:48 +00:00

[size unit] changed 'bytes' to 'B' (#7128)

This commit is contained in:
llj
2024-11-29 17:41:35 +08:00
committed by GitHub
parent 429a2f39d3
commit 51d5706aa6

View File

@@ -22,7 +22,7 @@ export const Utils = {
if (typeof(bytes) == 'undefined') return ' ';
if (bytes < 0) return '--';
const sizes = ['bytes', 'KB', 'MB', 'GB', 'TB', 'PB'];
const sizes = ['B', 'KB', 'MB', 'GB', 'TB', 'PB'];
if (bytes === 0) return bytes + ' ' + sizes[0];