From 926458a9b07be7edc665a0483d0619d90fc6f191 Mon Sep 17 00:00:00 2001 From: Egor Date: Sun, 14 Sep 2025 12:22:52 -0700 Subject: [PATCH] gpu monitoring data shouldn't be 0s on errors --- eslint.config.ts | 3 --- src/utils/node/gpu.ts | 7 +------ 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/eslint.config.ts b/eslint.config.ts index d2ec037..9870aa7 100644 --- a/eslint.config.ts +++ b/eslint.config.ts @@ -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', }, }, diff --git a/src/utils/node/gpu.ts b/src/utils/node/gpu.ts index 50dcf1f..3adb4c1 100644 --- a/src/utils/node/gpu.ts +++ b/src/utils/node/gpu.ts @@ -274,12 +274,7 @@ async function getLinuxGPUData() { memoryTotal, }); } catch { - gpus.push({ - deviceName, - usage: 0, - memoryUsed: 0, - memoryTotal: 0, - }); + continue; } }