diff options
| author | zhangyu <[email protected]> | 2024-03-19 15:05:47 +0800 |
|---|---|---|
| committer | zhangyu <[email protected]> | 2024-03-19 15:05:47 +0800 |
| commit | 01dbbc8d341707f1d050ecca9aed8280d75ed55e (patch) | |
| tree | 6495a81ee99183a2e09684a7834c9caf02692cac | |
| parent | 88cd694579010691a58e8406ca46bc3583002137 (diff) | |
fix: NEZ-3427 删除错误单位Bbpsrel-24.01.08
| -rw-r--r-- | nezha-fronted/src/components/chart/chartDataFormat.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/nezha-fronted/src/components/chart/chartDataFormat.js b/nezha-fronted/src/components/chart/chartDataFormat.js index c8e7d33f3..f082f3800 100644 --- a/nezha-fronted/src/components/chart/chartDataFormat.js +++ b/nezha-fronted/src/components/chart/chartDataFormat.js @@ -194,11 +194,11 @@ function packetsSec (value, index, type = 1, dot) { } function bitsSec (value, index, type = 1, dot) { if (type == 1) { - return asciiCompute(value, 1024, ['bps', 'Bbps', 'Kbps', 'Mbps', 'Gbps', 'Tbps', 'Pbps', 'Epps', 'Zpps', 'Ypps'], 1, true) + return asciiCompute(value, 1024, ['bps', 'Kbps', 'Mbps', 'Gbps', 'Tbps', 'Pbps', 'Epps', 'Zpps', 'Ypps'], 1, false) } else if (type == -1) { - return asciiCompute(value, 1024, ['bps', 'Bbps', 'Kbps', 'Mbps', 'Gbps', 'Tbps', 'Pbps', 'Epps', 'Zpps', 'Ypps'], dot, true) + return asciiCompute(value, 1024, ['bps', 'Kbps', 'Mbps', 'Gbps', 'Tbps', 'Pbps', 'Epps', 'Zpps', 'Ypps'], dot, false) } else { - return asciiCompute(value, 1024, ['bps', 'Bbps', 'Kbps', 'Mbps', 'Gbps', 'Tbps', 'Pbps', 'Epps', 'Zpps', 'Ypps'], 2, true) + return asciiCompute(value, 1024, ['bps', 'Kbps', 'Mbps', 'Gbps', 'Tbps', 'Pbps', 'Epps', 'Zpps', 'Ypps'], 2, false) } } function bytesSec (value, index, type = 1, dot) { @@ -302,11 +302,11 @@ function petabitsSec (value, index, type = 1, dot) { } function bitsSecSI (value, index, type = 1, dot) { if (type == 1) { - return asciiCompute(value, 1000, ['bps', 'Bbps', 'Kbps', 'Mbps', 'Gbps', 'Tbps', 'Pbps', 'Epps', 'Zpps', 'Ypps'], 1, true) + return asciiCompute(value, 1000, ['bps', 'Kbps', 'Mbps', 'Gbps', 'Tbps', 'Pbps', 'Epps', 'Zpps', 'Ypps'], 1, false) } else if (type == -1) { - return asciiCompute(value, 1000, ['bps', 'Bbps', 'Kbps', 'Mbps', 'Gbps', 'Tbps', 'Pbps', 'Epps', 'Zpps', 'Ypps'], dot, true) + return asciiCompute(value, 1000, ['bps', 'Kbps', 'Mbps', 'Gbps', 'Tbps', 'Pbps', 'Epps', 'Zpps', 'Ypps'], dot, false) } else { - return asciiCompute(value, 1000, ['bps', 'Bbps', 'Kbps', 'Mbps', 'Gbps', 'Tbps', 'Pbps', 'Epps', 'Zpps', 'Ypps'], 2, true) + return asciiCompute(value, 1000, ['bps', 'Kbps', 'Mbps', 'Gbps', 'Tbps', 'Pbps', 'Epps', 'Zpps', 'Ypps'], 2, false) } } function bytesSecSI (value, index, type = 1, dot) { |
