chore: show used vram for a second

This commit is contained in:
jialin
2025-07-17 12:01:49 +08:00
parent 32ba5e1802
commit ddbbe92a85
4 changed files with 27 additions and 5 deletions
+5 -1
View File
@@ -44,6 +44,7 @@ const GPUList: React.FC = () => {
const {
dataSource,
queryParams,
extraStatus,
handlePageChange,
handleTableChange,
handleSearch,
@@ -184,9 +185,12 @@ const GPUList: React.FC = () => {
})}
dataIndex="VRAM"
key="VRAM"
render={(text, record: GPUDeviceItem) => {
render={(text, record: GPUDeviceItem, index: number) => {
return (
<ProgressBar
open={
index === 0 && dataSource.loadend && extraStatus.firstLoad
}
percent={
record.memory?.used
? _.round(record.memory?.utilization_rate, 0)