fix MHz view

This commit is contained in:
MHSanaei 2023-05-25 16:13:54 +03:30
parent 15211f81b1
commit 6a7c3716ac

View File

@ -23,8 +23,12 @@ function sizeFormat(size) {
}
function cpuSpeedFormat(speed) {
if (speed > 1000) {
const GHz = speed / 1000;
return GHz.toFixed(2) + " GHz";
} else {
return speed.toFixed(2) + " MHz";
}
}
function cpuCoreFormat(cores) {