We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ead795 commit 678d2abCopy full SHA for 678d2ab
Common/Node/bytesToSize.js
@@ -6,7 +6,7 @@ const bytesToSize = bytes => {
6
const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB']
7
if (bytes === 0) return 'n/a'
8
const i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024)), 10)
9
- if (i === 0) return `${bytes} ${sizes[i]})`
+ if (i === 0) return `${bytes} ${sizes[i]}`
10
return `${(bytes / 1024 ** i).toFixed(1)} ${sizes[i]}`
11
}
12
0 commit comments