mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-08-24 11:56:54 +00:00
fix MHz view
This commit is contained in:
parent
5e5a888357
commit
5c1819b3cf
1 changed files with 6 additions and 2 deletions
|
@ -23,8 +23,12 @@ function sizeFormat(size) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function cpuSpeedFormat(speed) {
|
function cpuSpeedFormat(speed) {
|
||||||
|
if (speed > 1000) {
|
||||||
const GHz = speed / 1000;
|
const GHz = speed / 1000;
|
||||||
return GHz.toFixed(2) + " GHz";
|
return GHz.toFixed(2) + " GHz";
|
||||||
|
} else {
|
||||||
|
return speed.toFixed(2) + " MHz";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function cpuCoreFormat(cores) {
|
function cpuCoreFormat(cores) {
|
||||||
|
|
Loading…
Reference in a new issue