This commit is contained in:
jhnine 2022-11-26 17:48:06 +08:00
parent 45e3ac9acd
commit e2de0730a1
2 changed files with 3 additions and 1 deletions

View File

@ -12,6 +12,8 @@ import { getServerResources } from '@/api/container/cluster'
const getServerResourceData = (clusterName, params) => {
return new Promise(function(resolve) {
getServerResources(params).then(res => {
const data = res.data
data[data.length - 1].flops = (data[data.length - 1].flops / 1000000).toFixed(2) + 'PFlops'
resolve({ total: 0, rows: res.data })
})
})

View File

@ -39,7 +39,7 @@ export default {
{ prop: 'cpuGFlops', label: 'cpu理论峰值/GFlops' },
{ prop: 'gpuGFlops', label: 'gpu理论峰值/GFlops' },
{ prop: 'region', label: '地域' },
{ prop: 'flops', label: '理论峰值/GFlops' }
{ prop: 'flops', label: '理论峰值/PFlops' }
]
}
},