From 5e5e6b67260802b7e1e4078232fc122143650e60 Mon Sep 17 00:00:00 2001 From: Meliox <5264368+Meliox@users.noreply.github.com> Date: Sun, 9 Aug 2026 10:48:56 +0200 Subject: [PATCH] remove small gpu stats (#253) Co-authored-by: Meliox --- .../node_info/files/PveMod_pvemanagerlib.js | 78 ------------------- 1 file changed, 78 deletions(-) diff --git a/src/modules/node_info/files/PveMod_pvemanagerlib.js b/src/modules/node_info/files/PveMod_pvemanagerlib.js index 1efc938..c4fdd51 100644 --- a/src/modules/node_info/files/PveMod_pvemanagerlib.js +++ b/src/modules/node_info/files/PveMod_pvemanagerlib.js @@ -153,84 +153,6 @@ Ext.define('PVE.node.StatusView', { return Proxmox.Utils.render_size(record.shared); }, }, - { - itemId: 'gpu', - iconCls: 'fa fa-fw fa-desktop', - title: gettext('GPU Usage'), - printBar: false, - textField: 'PveMod_graphicsInfo', - renderer: function(gpuStats) { - if (gpuStats && gpuStats.disabled === true) { - this.hide(); - return ''; - } else if (!gpuStats || !gpuStats.Graphics) { - return ''; - } - - let hasActiveGPU = false; - let gpuName = ''; - - // Check Intel GPUs - if (gpuStats.Graphics.Intel) { - const keys = Object.keys(gpuStats.Graphics.Intel).sort(); - if (keys.length > 0) { - const gpuData = gpuStats.Graphics.Intel[keys[0]]; - hasActiveGPU = true; - gpuName = gpuData.name; - } - } - - // Check NVIDIA GPUs - if (gpuStats.Graphics.NVIDIA) { - const keys = Object.keys(gpuStats.Graphics.NVIDIA).sort(); - if (keys.length > 0) { - const stats = gpuStats.Graphics.NVIDIA[keys[0]].stats; - hasActiveGPU = true; - gpuName = stats.name; - } - } - - return hasActiveGPU ? gpuName : ''; - }, - }, - { - itemId: 'gpu_usage', - iconCls: 'fa fa-fw fa-desktop', - title: gettext('GPU 0'), - valueField: 'gpuStats', - printBar: false, - textField: 'gpuStats', - renderer: function(gpuStats) { - if (!gpuStats || !gpuStats.Graphics) { - return ''; - } - - // Check Intel GPUs - if (gpuStats.Graphics.Intel) { - const keys = Object.keys(gpuStats.Graphics.Intel).sort(); - if (keys.length > 0) { - const gpuData = gpuStats.Graphics.Intel[keys[0]]; - if (gpuData.stats.engines && gpuData.stats.engines['Render/3D']) { - const usage = gpuData.stats.engines['Render/3D'].busy; - return `${usage}%`; - } - } - } - - // Check NVIDIA GPUs - if (gpuStats.Graphics.NVIDIA) { - const keys = Object.keys(gpuStats.Graphics.NVIDIA).sort(); - if (keys.length > 0) { - const stats = gpuStats.Graphics.NVIDIA[keys[0]].stats; - if (stats.utilization) { - return `${stats.utilization.gpu}%`; - } - } - } - - return ''; - }, - }, { iconCls: 'fa fa-fw fa-hdd-o', itemId: 'rootfs',