Skip to content

Commit

Permalink
round ram to nearest number (#3800)
Browse files Browse the repository at this point in the history
  • Loading branch information
Feroze Mohideen authored Oct 12, 2023
1 parent 0cfdbaf commit 4029f42
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const Resources: React.FC<ResourcesProps> = ({
setValue(
`app.services.${index}.ramMegabytes`, {
readOnly: false,
value: closestMultiplier(0, maxCPU, value.value) * maxRAM
value: Number((closestMultiplier(0, maxCPU, value.value) * maxRAM).toFixed(0))
});
}
onChange({
Expand Down

0 comments on commit 4029f42

Please sign in to comment.