Skip to content

Commit

Permalink
feat(version): release 0.33.2 version
Browse files Browse the repository at this point in the history
  • Loading branch information
gokhangunduz committed Jan 26, 2024
1 parent 6ebebce commit f888e97
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ui",
"version": "0.33.1",
"version": "0.33.2",
"private": true,
"scripts": {
"dev": "GENERATE_SOURCEMAP=false react-scripts start",
Expand Down
6 changes: 3 additions & 3 deletions src/components/EnvironmentResource/EnvironmentResource.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@ export default function EnvironmentResource(): ReactElement {
{[
{
icon: <BsFillCpuFill size={16} className="text-light-500" />,
text: `${robotData.step1.resources.cpu?.allocatedCore}/${robotData.step1.tree.cloudInstance.resources.cpu?.coreTotal} Core CPU`,
text: `${robotData.step1.tree.cloudInstance.resources.cpu?.coreTotal} Core CPU`,
},
{
icon: <BsFillCpuFill size={16} className="text-light-500" />,
text: `${robotData.step1.resources.gpu?.allocatedCore}/${robotData.step1.tree.cloudInstance.resources.gpu?.coreTotal} vGPU/MIG`,
},
{
icon: <FaMemory size={16} className="text-light-500" />,
text: `${robotData.step1.resources.memory?.allocatedCapacity}/${robotData.step1.tree.cloudInstance.resources.memory?.capacityTotal} GB Memory`,
text: `${robotData.step1.tree.cloudInstance.resources.memory?.capacityTotal} GB Memory`,
},
{
icon: <MdOutlineStorage size={16} className="text-light-500" />,
text: `${robotData.step1.resources.storage?.allocatedCapacity}/${robotData.step1.tree.cloudInstance.resources.storage?.capacityTotal} GB Storage`,
text: `${robotData.step1.resources.storage?.allocatedCapacity} GB Storage`,
},
].map((item, index) => {
return (
Expand Down
10 changes: 2 additions & 8 deletions src/contexts/FunctionsContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -670,10 +670,7 @@ export default ({ children }: any) => {
gpu: {
coreTotal:
selectedState?.instance?.cloudInstanceResource?.gpuUsage
?.map(
(gpu: any) =>
Number(gpu?.allocated) + Number(gpu?.capacity),
)
?.map((gpu: any) => Number(gpu?.capacity))
.reduce((a: any, b: any) => a + b, 0),
},
memory: {
Expand Down Expand Up @@ -1208,10 +1205,7 @@ export default ({ children }: any) => {
gpu: {
coreTotal:
selectedState?.instance?.cloudInstanceResource?.gpuUsage
?.map(
(gpu: any) =>
Number(gpu?.allocated) + Number(gpu?.capacity),
)
?.map((gpu: any) => Number(gpu?.capacity))
.reduce((a: any, b: any) => a + b, 0),
},
memory: {
Expand Down

0 comments on commit f888e97

Please sign in to comment.