mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-03-01 01:20:49 +03:00
fix MHz view
This commit is contained in:
parent
15211f81b1
commit
6a7c3716ac
@ -23,8 +23,12 @@ function sizeFormat(size) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function cpuSpeedFormat(speed) {
|
function cpuSpeedFormat(speed) {
|
||||||
const GHz = speed / 1000;
|
if (speed > 1000) {
|
||||||
return GHz.toFixed(2) + " GHz";
|
const GHz = speed / 1000;
|
||||||
|
return GHz.toFixed(2) + " GHz";
|
||||||
|
} else {
|
||||||
|
return speed.toFixed(2) + " MHz";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function cpuCoreFormat(cores) {
|
function cpuCoreFormat(cores) {
|
||||||
|
Loading…
Reference in New Issue
Block a user