mirror of
https://github.com/lone-cloud/gerbil
synced 2026-06-03 19:54:44 -07:00
gpu monitoring data shouldn't be 0s on errors
This commit is contained in:
parent
fce1d8bae6
commit
926458a9b0
2 changed files with 1 additions and 9 deletions
|
|
@ -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',
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -274,12 +274,7 @@ async function getLinuxGPUData() {
|
|||
memoryTotal,
|
||||
});
|
||||
} catch {
|
||||
gpus.push({
|
||||
deviceName,
|
||||
usage: 0,
|
||||
memoryUsed: 0,
|
||||
memoryTotal: 0,
|
||||
});
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue