1
0
forked from bot/app

: bug: 哈哈哈哈哈哈哈,markdown又寄了

This commit is contained in:
2024-04-24 20:09:23 +08:00
parent 0a1d96c434
commit b240d75552
3 changed files with 29 additions and 284 deletions

View File

@ -60,7 +60,7 @@ function createPieChartOption(title, data) {
}
function convertSize(size, precision = 2, addUnit = true, suffix = " XiB"): string {
function convertSize(size, precision = 2, addUnit = true, suffix = " XiB") {
let isNegative = size < 0;
size = Math.abs(size);
let units = ["", "K", "M", "G", "T", "P", "E", "Z"];