From 9caf40459f66e4c9204cdd14b8260be060922049 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=95=85=E6=99=9A?= Date: Mon, 19 Aug 2024 16:49:21 +0800 Subject: [PATCH] PullRequest: 507 fix: fixes unit conversion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Merge branch 'fix/cloud/202405-mbtoB of git@code.alipay.com:oceanbase/oceanbase-developer-center.git into cloud/202405 https://code.alipay.com/oceanbase/oceanbase-developer-center/pull_requests/507 Signed-off-by: 晓康 * fix: fixes unit conversion --- src/component/Task/AlterDdlTask/DetailContent/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/component/Task/AlterDdlTask/DetailContent/index.tsx b/src/component/Task/AlterDdlTask/DetailContent/index.tsx index 1edb08003..fc131d353 100644 --- a/src/component/Task/AlterDdlTask/DetailContent/index.tsx +++ b/src/component/Task/AlterDdlTask/DetailContent/index.tsx @@ -156,7 +156,7 @@ export function getItems( const handleDataSizeLimit = async (dataSizeLimit, handleClose) => { const res = await updateThrottleConfig(id, { - dataSizeLimit: bToMb(dataSizeLimit), + dataSizeLimit: mbToB(dataSizeLimit), rowLimit: parameters?.rateLimitConfig?.rowLimit, }); if (res) { @@ -326,7 +326,7 @@ export function getItems( suffix="MB/s" min={0} max={OscMaxDataSizeLimit} - defaultValue={mbToB(parameters?.rateLimitConfig?.dataSizeLimit)} + defaultValue={bToMb(parameters?.rateLimitConfig?.dataSizeLimit)} onOk={handleDataSizeLimit} readlOnly={cantBeModified} />,