mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-13 17:30:45 +01:00
Add PB
This commit is contained in:
parent
d848195a6e
commit
68d49bc770
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ import Vue from 'vue';
|
|||
|
||||
Vue.filter('bytes', (v, digits = 0) => {
|
||||
if (v == null) return '?';
|
||||
const sizes = ['B', 'KB', 'MB', 'GB', 'TB'];
|
||||
const sizes = ['B', 'KB', 'MB', 'GB', 'TB', 'PB'];
|
||||
if (v == 0) return '0';
|
||||
const isMinus = v < 0;
|
||||
if (isMinus) v = -v;
|
||||
|
|
Loading…
Reference in a new issue