Remove un-use resource checking to free ram on windows - monitor extension (#1241)
Co-authored-by: Hien To <tominhhien97@gmail.com>
This commit is contained in:
parent
7feaf9694d
commit
cfbc5674fe
@ -272,11 +272,11 @@ function spawnNitroProcess(nitroResourceProbe: any): Promise<any> {
|
||||
function getResourcesInfo(): Promise<ResourcesInfo> {
|
||||
return new Promise(async (resolve) => {
|
||||
const cpu = await si.cpu();
|
||||
const mem = await si.mem();
|
||||
// const mem = await si.mem();
|
||||
|
||||
const response = {
|
||||
const response: ResourcesInfo = {
|
||||
numCpuPhysicalCore: cpu.physicalCores,
|
||||
memAvailable: mem.available,
|
||||
memAvailable: 0,
|
||||
};
|
||||
resolve(response);
|
||||
});
|
||||
|
||||
@ -4,11 +4,11 @@ const getResourcesInfo = async () =>
|
||||
new Promise(async (resolve) => {
|
||||
const cpu = await si.cpu();
|
||||
const mem = await si.mem();
|
||||
const gpu = await si.graphics();
|
||||
// const gpu = await si.graphics();
|
||||
const response = {
|
||||
cpu,
|
||||
mem,
|
||||
gpu,
|
||||
// gpu,
|
||||
};
|
||||
resolve(response);
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user