Skip to content

Commit

Permalink
Merge pull request #149 from veldenb/main
Browse files Browse the repository at this point in the history
Ensure PCI id is lower case so it matches the case of lspci.
  • Loading branch information
ljuzig authored Sep 27, 2024
2 parents a5d6b66 + fccae9d commit 7cb3dec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gpu/gpuMonitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1167,7 +1167,7 @@ export default class GpuMonitor extends Monitor {
for(const gpuInfo of gpuInfoList) {
if(!gpuInfo['@id']) continue;

let id = gpuInfo['@id'];
let id = gpuInfo['@id'].toString().toLowerCase();
if(id.startsWith('00000000:')) id = id.slice(4);

const gpu: NvidiaInfo = {
Expand Down

0 comments on commit 7cb3dec

Please sign in to comment.