fix: 看板ws黄金指标UPF

This commit is contained in:
TsMask
2024-03-21 10:10:02 +08:00
parent 4ae5f64da3
commit d15b75e8fd
5 changed files with 258 additions and 164 deletions

View File

@@ -122,9 +122,11 @@ export function parseSizeFromKBs(size: number): string {
/**
* 字节数转换速率
* @param sizeByte 数值大小
* @returns
* @returns [值,单位]
*/
export function parseSizeFromKbs(sizeByte: number, timeInterval: number): any {
sizeByte = Number(sizeByte) || 0;
timeInterval = Number(timeInterval) || 1;
// let realBit:any=((sizeByte * 8) / timeInterval);
// if (realBit >= 0 && realBit < 1000) {
// return [realBit.toFixed(2),' bits/sec'];