cpuCurrentSpeed() fix deno workarround
This commit is contained in:
parent
4bfd0c3ea5
commit
01e7f401e7
@ -1003,9 +1003,9 @@ function getCpuCurrentSpeedSync() {
|
|||||||
}
|
}
|
||||||
} else if (_linux) {
|
} else if (_linux) {
|
||||||
try {
|
try {
|
||||||
speedStrings = execSync('cat /proc/cpuinfo | grep "cpu MHz" | cut -d " " -f 3', util.execOptsLinux).toString().split('\n');
|
const speedStrings = execSync('cat /proc/cpuinfo | grep "cpu MHz" | cut -d " " -f 3', util.execOptsLinux).toString().split('\n');
|
||||||
for (let i in speedStrings) {
|
for (let i in speedStrings) {
|
||||||
speeds.push(parseInt(speedStrings, 10));
|
speeds.push(Math.floor(parseInt(speedStrings, 10) / 10) / 100);
|
||||||
}
|
}
|
||||||
} catch {
|
} catch {
|
||||||
util.noop();
|
util.noop();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user