Skip to content

Commit

Permalink
Merge pull request #15 from oraichain/feat/fix-gpu-info
Browse files Browse the repository at this point in the history
feat(gpu credit): temporarily fix gpu info
  • Loading branch information
haunv3 authored Sep 17, 2024
2 parents 6d09c92 + b910e1e commit ca302bb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pages/GpuCredit/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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([]);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit ca302bb

Please sign in to comment.