added disk usage and si units

This commit is contained in:
AndzejsP
2023-05-29 09:19:00 +03:00
parent 858503f5bb
commit 572980b3cd
2 changed files with 107 additions and 21 deletions

View File

@ -191,7 +191,7 @@ export default {
*
* @return Formatted string.
*/
humanFileSize(bytes, si = false, dp = 1) {
humanFileSize(bytes, si = true, dp = 1) {
const thresh = si ? 1000 : 1024;
if (Math.abs(bytes) < thresh) {