forked from f0ck/f0ckv2
lul
This commit is contained in:
@@ -24,7 +24,7 @@ const checkRepostCheckSum = (cs, cbcrcs) => {
|
||||
cbcrcs((rows[0].count == 0)?true:rows[0].id);
|
||||
});
|
||||
};
|
||||
const formatSize = (size) => {
|
||||
const formatSize = size => {
|
||||
const i = ~~(Math.log(size) / Math.log(1024));
|
||||
return (size / Math.pow(1024, i)).toFixed(2) * 1 + ' ' + ['B', 'kB', 'MB', 'GB', 'TB'][i];
|
||||
};
|
||||
|
Reference in New Issue
Block a user