From f918be71244257f990c6187752f73f56cd4a7edd Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Tue, 5 Jul 2022 10:34:01 +0200 Subject: [PATCH] fix(ui) - MemoryConsumption avg value as per the API change --- .../PredefinedWidgets/MemoryConsumption/MemoryConsumption.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/app/components/Dashboard/Widgets/PredefinedWidgets/MemoryConsumption/MemoryConsumption.tsx b/frontend/app/components/Dashboard/Widgets/PredefinedWidgets/MemoryConsumption/MemoryConsumption.tsx index 3ccb890ed..80e1f4d9c 100644 --- a/frontend/app/components/Dashboard/Widgets/PredefinedWidgets/MemoryConsumption/MemoryConsumption.tsx +++ b/frontend/app/components/Dashboard/Widgets/PredefinedWidgets/MemoryConsumption/MemoryConsumption.tsx @@ -15,6 +15,8 @@ interface Props { function MemoryConsumption(props: Props) { const { data, metric } = props; const gradientDef = Styles.gradientDef(); + // covert the data to mb + const avgValue = Math.round(data.value / 1024 / 1024); return ( <>
- +