diff --git a/web/containers/Layout/BottomPanel/SystemMonitor/index.tsx b/web/containers/Layout/BottomPanel/SystemMonitor/index.tsx index 7fb20b0a4..4fd902075 100644 --- a/web/containers/Layout/BottomPanel/SystemMonitor/index.tsx +++ b/web/containers/Layout/BottomPanel/SystemMonitor/index.tsx @@ -159,35 +159,40 @@ const SystemMonitor = () => { {gpus.length > 0 && (
- {gpus.map((gpu, index) => ( -
-
- - {gpu.name} - -
-
- - {gpu.memoryTotal - gpu.memoryFree}/ - {gpu.memoryTotal} - - MB + {gpus.map((gpu, index) => { + const gpuUtilization = Math.round( + (gpu.memoryFree / Math.max(gpu.memoryTotal, 1)) * 100 + ) + return ( +
+
+ + {gpu.name} + +
+
+ + {gpu.memoryTotal - gpu.memoryFree}/ + {gpu.memoryTotal} + + MB +
-
-
- - - {gpu.utilization}% - +
+ + + {gpuUtilization}% + +
-
- ))} + ) + })}
)}