Reverted my bad MB conversion

This commit is contained in:
Ricardo Fernández Serrata 2022-07-03 16:21:53 -04:00 committed by GitHub
parent 72d90d4502
commit 7a65f9ad44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -273,7 +273,7 @@ function appendTriggerGroups() {
appendPortals()
})
let dataSize = [Number((res.dataLength / (1024 * 2)).toFixed(1)), "MB"]
let dataSize = [Number((res.dataLength / 1024 / 1024).toFixed(1)), "MB"]
if (dataSize[0] < 1) dataSize = [Number((res.dataLength / 1024).toFixed(1)), "KB"]
$('#codeLength').html(`${commafy(res.dataLength)} characters (${dataSize.join(" ")})`)