Update sysinfo.js meshcmd (#6448)
This commit is contained in:
parent
ccf00b7d06
commit
0c825251eb
|
@ -285,16 +285,10 @@ function macos_thermals()
|
||||||
return (ret);
|
return (ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
switch(process.platform)
|
const platformConfig = {
|
||||||
{
|
linux: { cpuUtilization: linux_cpuUtilization, memUtilization: linux_memUtilization, thermals: linux_thermals },
|
||||||
case 'linux':
|
win32: { cpuUtilization: windows_cpuUtilization, memUtilization: windows_memUtilization, thermals: windows_thermals },
|
||||||
module.exports = { cpuUtilization: linux_cpuUtilization, memUtilization: linux_memUtilization, thermals: linux_thermals };
|
darwin: { cpuUtilization: macos_cpuUtilization, memUtilization: macos_memUtilization, thermals: macos_thermals }
|
||||||
break;
|
};
|
||||||
case 'win32':
|
|
||||||
module.exports = { cpuUtilization: windows_cpuUtilization, memUtilization: windows_memUtilization, thermals: windows_thermals };
|
|
||||||
break;
|
|
||||||
case 'darwin':
|
|
||||||
module.exports = { cpuUtilization: macos_cpuUtilization, memUtilization: macos_memUtilization, thermals: macos_thermals };
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
module.exports = platformConfig[process.platform];
|
||||||
|
|
Loading…
Reference in New Issue