A lot of refactoring, and etc #232
1 changed files with 1 additions and 1 deletions
|
@ -273,7 +273,7 @@ function appendTriggerGroups() {
|
||||||
appendPortals()
|
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"]
|
if (dataSize[0] < 1) dataSize = [Number((res.dataLength / 1024).toFixed(1)), "KB"]
|
||||||
|
|
||||||
$('#codeLength').html(`${commafy(res.dataLength)} characters (${dataSize.join(" ")})`)
|
$('#codeLength').html(`${commafy(res.dataLength)} characters (${dataSize.join(" ")})`)
|
||||||
|
|
Loading…
Add table
Reference in a new issue