|
|
@@ -47,10 +47,11 @@ const ServiceContainer: React.FC<ServiceProps> = ({
|
|
|
AWS_INSTANCE_LIMITS["t3"]["medium"]["vCPU"] * UPPER_BOUND
|
|
|
); //default is set to a t3 medium
|
|
|
const [maxRAM, setMaxRAM] = useState(
|
|
|
+ // round to 100
|
|
|
Math.round(
|
|
|
convert(AWS_INSTANCE_LIMITS["t3"]["medium"]["RAM"], "GiB").to("MB") *
|
|
|
- UPPER_BOUND
|
|
|
- )
|
|
|
+ UPPER_BOUND / 100
|
|
|
+ ) * 100
|
|
|
); //default is set to a t3 medium
|
|
|
const context = useContext(Context);
|
|
|
|
|
|
@@ -139,8 +140,8 @@ const ServiceContainer: React.FC<ServiceProps> = ({
|
|
|
setMaxCPU(Math.fround(largestInstanceType.vCPUs * UPPER_BOUND));
|
|
|
setMaxRAM(
|
|
|
Math.round(
|
|
|
- convert(largestInstanceType.RAM, "GiB").to("MB") * UPPER_BOUND
|
|
|
- )
|
|
|
+ convert(largestInstanceType.RAM, "GiB").to("MB") * UPPER_BOUND / 100
|
|
|
+ ) * 100
|
|
|
);
|
|
|
}
|
|
|
})
|