version:1.0.0

bugfixes:
update:更改包名,增加系统签名,修改图标
This commit is contained in:
2026-01-24 15:35:07 +08:00
parent a5658b6e1e
commit 69d3ddd498
115 changed files with 538 additions and 757 deletions

View File

@@ -0,0 +1,25 @@
package com.hainaos.vc.utils;
import java.text.DecimalFormat;
public class FileUtils {
/**
* 转换文件大小 MB
*/
public static String formatFileSize(long fileS) {
DecimalFormat df = new DecimalFormat("#");
String fileSizeString;
String wrongSize = "0GB";
if (fileS == 0) {
return wrongSize;
}
if (fileS < 1024) {
fileSizeString = df.format((double) fileS) + "MB";
} else if (fileS < 1048576) {
fileSizeString = df.format((double) fileS / 1024) + "GB";
} else {
fileSizeString = df.format((double) fileS / 1048576) + "TB";
}
return fileSizeString;
}
}