From f888e97fb80d8ceb138f6f7d760c90952e4297a2 Mon Sep 17 00:00:00 2001 From: gokhangunduz Date: Fri, 26 Jan 2024 11:39:44 +0300 Subject: [PATCH] feat(version): release 0.33.2 version --- package.json | 2 +- .../EnvironmentResource/EnvironmentResource.tsx | 6 +++--- src/contexts/FunctionsContext.tsx | 10 ++-------- 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index 83caf65c..095397de 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ui", - "version": "0.33.1", + "version": "0.33.2", "private": true, "scripts": { "dev": "GENERATE_SOURCEMAP=false react-scripts start", diff --git a/src/components/EnvironmentResource/EnvironmentResource.tsx b/src/components/EnvironmentResource/EnvironmentResource.tsx index 63789002..bd3197b7 100644 --- a/src/components/EnvironmentResource/EnvironmentResource.tsx +++ b/src/components/EnvironmentResource/EnvironmentResource.tsx @@ -19,7 +19,7 @@ export default function EnvironmentResource(): ReactElement { {[ { icon: , - 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: , @@ -27,11 +27,11 @@ export default function EnvironmentResource(): ReactElement { }, { icon: , - 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: , - 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 ( diff --git a/src/contexts/FunctionsContext.tsx b/src/contexts/FunctionsContext.tsx index 099ebae4..2217891b 100644 --- a/src/contexts/FunctionsContext.tsx +++ b/src/contexts/FunctionsContext.tsx @@ -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: { @@ -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: {