mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-24 04:48:03 +00:00
[size unit] changed 'bytes' to 'B' (#7128)
This commit is contained in:
@@ -22,7 +22,7 @@ export const Utils = {
|
|||||||
if (typeof(bytes) == 'undefined') return ' ';
|
if (typeof(bytes) == 'undefined') return ' ';
|
||||||
|
|
||||||
if (bytes < 0) 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];
|
if (bytes === 0) return bytes + ' ' + sizes[0];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user