gpu monitoring data shouldn't be 0s on errors

This commit is contained in:
Egor 2025-09-14 12:22:52 -07:00
parent fce1d8bae6
commit 926458a9b0
2 changed files with 1 additions and 9 deletions

View file

@ -172,7 +172,6 @@ const config = [
'sonarjs/cognitive-complexity': ['warn', 25],
// Promise rules to prevent sequential awaits (smarter detection)
'promise/prefer-await-to-then': 'error',
'promise/prefer-await-to-callbacks': 'off',
'promise/no-nesting': 'error',
@ -185,8 +184,6 @@ const config = [
'promise/catch-or-return': 'off',
'promise/no-native': 'off',
// Node.js specific async rules
'no-comments/disallowComments': 'error',
},
},

View file

@ -274,12 +274,7 @@ async function getLinuxGPUData() {
memoryTotal,
});
} catch {
gpus.push({
deviceName,
usage: 0,
memoryUsed: 0,
memoryTotal: 0,
});
continue;
}
}