Skip to content

Commit

Permalink
fix: add used vram into system event body (#1012)
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-jan authored Aug 12, 2024
1 parent 80b0350 commit 84e1e19
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cortex-js/src/domain/models/resource.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ export interface UsedMemInfo {

export interface GpuInfo {
name: string | undefined;
vram: number | null;
vram: UsedMemInfo;
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ export class ResourcesManagerService {
},
gpus: (await si.graphics()).controllers.map((gpu) => ({
name: gpu.name,
vram: gpu.vram,
vram: {
total: gpu.vram ?? 0,
used: gpu.memoryUsed ?? 0,
}
})),
};
}
Expand Down

0 comments on commit 84e1e19

Please sign in to comment.