From b910e1e96a88d28e7e44846580db920205829350 Mon Sep 17 00:00:00 2001 From: QuanPT Date: Tue, 17 Sep 2024 15:02:20 +0700 Subject: [PATCH] feat(gpu credit): temporarily fix gpu info --- src/pages/GpuCredit/index.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/GpuCredit/index.tsx b/src/pages/GpuCredit/index.tsx index b3f1bcb1..a6373dff 100644 --- a/src/pages/GpuCredit/index.tsx +++ b/src/pages/GpuCredit/index.tsx @@ -27,8 +27,8 @@ const baseApiUrl = process.env.REACT_APP_BASE_GPU_API_URL; const GpuCredit: React.FC<{}> = () => { const [gpuStatistics, setGpuStatistics] = useState({ - totalCards: 12, - totalVRAM: 295, + totalCards: 30, + totalVRAM: 1648, totalUsage: 0 }); const [gpuStatus, setGpuStatus] = useState([]); @@ -103,8 +103,8 @@ const GpuCredit: React.FC<{}> = () => { .get(`${baseApiUrl}/gpu-statistics`) .then(({ data }) => { const gpuStatisticsData = { - totalCards: data.numberOfCards, - totalVRAM: Math.round(data.totalVRAM), + totalCards: 30, // data.numberOfCards, // hardcode util BE done + totalVRAM: 1648, // Math.round(data.totalVRAM), // hardcode util BE done totalUsage: data.totalUsage.toFixed(2).replace(/\.0+$/, '') }; setGpuStatistics(gpuStatisticsData);