Update how it shows on linux
This commit is contained in:
parent
e300acc0f2
commit
cd3bf364cf
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ class StatsCommand extends Command {
|
||||||
const { stdout } = await exec('sysctl -n machdep.cpu.brand_string');
|
const { stdout } = await exec('sysctl -n machdep.cpu.brand_string');
|
||||||
cpu = stdout;
|
cpu = stdout;
|
||||||
} else if (process.platform == 'linux') {
|
} else if (process.platform == 'linux') {
|
||||||
const { stdout } = await exec('grep -m 1 \'model name\' /proc/cpuinfo');
|
const { stdout } = await exec('lscpu | grep "Model name:" | sed -r \'s/Model name:\\s{1,}//g\'');
|
||||||
cpu = stdout;
|
cpu = stdout;
|
||||||
} else if (process.platform == 'win32') {
|
} else if (process.platform == 'win32') {
|
||||||
const { stdout } = await exec('wmic CPU get NAME');
|
const { stdout } = await exec('wmic CPU get NAME');
|
||||||
|
|
Loading…
Reference in a new issue