fix: cpu/ memory columns in host detail VM tab (#436) (#437)

(cherry picked from commit 93c8399935a535d17d1fceb036d27f3b17eb83fa)

Signed-off-by: Andy Lee <andy.lee@suse.com>
Co-authored-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
mergify[bot] 2025-07-30 11:57:52 +08:00 committed by GitHub
parent 41f78c83a7
commit df1d7001bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -47,20 +47,26 @@ export default {
STATE, STATE,
NAME, NAME,
{ {
name: 'vmCPU', name: 'CPU',
labelKey: 'tableHeaders.cpu', label: 'CPU',
search: false, sort: ['displayCPU'],
sort: ['spec.template.spec.domain.cpu.cores'], value: 'displayCPU',
value: 'spec.template.spec.domain.cpu.cores', align: 'center',
width: 120 dashIfEmpty: true,
}, },
{ {
name: 'vmRAM', name: 'Memory',
labelKey: 'glance.memory', value: 'displayMemory',
search: false,
sort: ['memorySort'], sort: ['memorySort'],
value: 'spec.template.spec.domain.resources.limits.memory', align: 'center',
width: 120 labelKey: 'tableHeaders.memory',
formatter: 'Si',
formatterOpts: {
opts: {
increment: 1024, addSuffix: true, maxExponent: 3, minExponent: 3, suffix: 'i',
},
needParseSi: true
},
}, },
{ {
name: 'ip', name: 'ip',