diff --git a/src/components/DeviceMemoryHealth.tsx b/src/components/DeviceMemoryHealth.tsx index b7012b22..449331d3 100644 --- a/src/components/DeviceMemoryHealth.tsx +++ b/src/components/DeviceMemoryHealth.tsx @@ -35,7 +35,7 @@ const DeviceMemory = ({ currentMemory, maxMemory }: DeviceMemoryProps) => { const currentLoad = chartData[0].data.length > 0 ? chartData[0].data[chartData[0].data.length - 1].y : 0 - const message = currentLoad < 80 ? 'Good' : 'Poor' + const message = currentLoad < maxMemory ? 'Good' : 'Poor' return ( 0 ? chartData[0].data[chartData[0].data.length - 1].y : 0 - const message = currentLoad < 80 ? 'Good' : 'Poor' + const message = currentLoad > 60 ? 'Good' : 'Poor' return ( - + {message} - {/* This is additional text */} + {message === 'Poor' && ( + + {((currentLoad / 60) * 100).toFixed(0)}% Uttilization + + )} diff --git a/src/pages/DeviceHealthCheck/DeviceHealthCheck.tsx b/src/pages/DeviceHealthCheck/DeviceHealthCheck.tsx index 1b4debd9..a1d7131f 100644 --- a/src/pages/DeviceHealthCheck/DeviceHealthCheck.tsx +++ b/src/pages/DeviceHealthCheck/DeviceHealthCheck.tsx @@ -44,7 +44,7 @@ const DeviceHeanlthCheckContent = () => { - +