Skip to content

Commit

Permalink
PullRequest: 507 fix: fixes unit conversion
Browse files Browse the repository at this point in the history
Merge branch 'fix/cloud/202405-mbtoB of [email protected]:oceanbase/oceanbase-developer-center.git into cloud/202405

https://code.alipay.com/oceanbase/oceanbase-developer-center/pull_requests/507


Signed-off-by: 晓康 <[email protected]>


* fix: fixes unit conversion
  • Loading branch information
yezaoshu committed Aug 19, 2024
1 parent 4837072 commit 9caf404
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/component/Task/AlterDdlTask/DetailContent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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}
/>,
Expand Down

0 comments on commit 9caf404

Please sign in to comment.