Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug #1178 high ram on windows #1241

Merged
merged 1 commit into from
Dec 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions extensions/inference-nitro-extension/src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down
4 changes: 2 additions & 2 deletions extensions/monitoring-extension/src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down
Loading