修改TB、PB、EB的有些计算错误

This commit is contained in:
GoEdgeLab
2021-04-29 15:04:42 +08:00
parent 746ecd1e41
commit 15b687bb01
4 changed files with 21 additions and 3 deletions

View File

@@ -40,6 +40,10 @@ Tea.context(function () {
return (bits / 1000 / 1000 / 1000) + "PB"
}
if (bits < 1000 * 1000 * 1000 * 1000 * 1000) {
return (bits / 1000 / 1000 / 1000 / 1000) + "EB"
}
return ""
}
})