chore: dashboard update field name

This commit is contained in:
jialin
2024-09-09 18:58:55 +08:00
parent dff8a0ff2f
commit ea2844ea7f
8 changed files with 28 additions and 28 deletions
@@ -17,7 +17,7 @@ const TypeKeyMap = {
intl: false,
color: 'rgba(250, 173, 20,.8)'
},
memory: {
ram: {
label: 'dashboard.memory',
type: 'Memory',
intl: true,
@@ -29,7 +29,7 @@ const TypeKeyMap = {
intl: false,
color: 'rgba(84, 204, 152,.8)'
},
gpu_memory: {
vram: {
label: 'dashboard.vram',
type: 'VRAM',
intl: true,
@@ -114,7 +114,7 @@ const UtilizationOvertime: React.FC = () => {
const intl = useIntl();
const data = useContext(DashboardContext)?.system_load?.history || {};
const typeList = ['gpu', 'cpu', 'memory', 'gpu_memory'];
const typeList = ['gpu', 'cpu', 'ram', 'vram'];
const tooltipValueFormatter = (value: any) => {
return !value ? value : `${value}%`;