From 9139503e59d2979541ef666a33ef33cb549b5ea2 Mon Sep 17 00:00:00 2001 From: vichansson Date: Tue, 8 Oct 2024 11:02:20 +0300 Subject: [PATCH] B OpenNebula/one#6746: Fix DS LIMIT_MB parsing (#3254) Signed-off-by: Victor Hansson (cherry picked from commit 8c8f053c39113190437bbafefca8e9545642b3f4) --- .../src/client/components/Tabs/Datastore/Info/information.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fireedge/src/client/components/Tabs/Datastore/Info/information.js b/src/fireedge/src/client/components/Tabs/Datastore/Info/information.js index cacc3f5838..f9903b0894 100644 --- a/src/fireedge/src/client/components/Tabs/Datastore/Info/information.js +++ b/src/fireedge/src/client/components/Tabs/Datastore/Info/information.js @@ -40,7 +40,9 @@ const InformationPanel = ({ datastore = {}, actions }) => { const isShared = stringToBoolean(TEMPLATE.SHARED) const limit = - !isShared && TEMPLATE.LIMIT_MB ? prettyBytes(TEMPLATE.LIMIT_MB, 'MB') : '-' + !isShared && TEMPLATE.LIMIT_MB + ? prettyBytes(TEMPLATE.LIMIT_MB, 'MB', 1) + : '-' const { percentOfUsed, percentLabel } = getCapacityInfo(datastore) const { color: stateColor, name: stateName } = getState(datastore)