Prettier 2.0 (#393)

This commit is contained in:
Steve Faulkner
2021-01-20 09:15:01 -06:00
committed by GitHub
parent c1937ca464
commit 4be53284b5
500 changed files with 41927 additions and 41838 deletions

View File

@@ -64,7 +64,7 @@ export function computeRUUsagePriceHourly({
requestUnits,
numberOfRegions,
multimasterEnabled,
isAutoscale
isAutoscale,
}: ComputeRUUsagePriceHourlyArgs): number {
const regionMultiplier: number = getRegionMultiplier(numberOfRegions, multimasterEnabled);
const multimasterMultiplier: number = getMultimasterMultiplier(numberOfRegions, multimasterEnabled);
@@ -183,7 +183,7 @@ export function getEstimatedAutoscaleSpendHtml(
requestUnits: throughput,
numberOfRegions: regions,
multimasterEnabled: multimaster,
isAutoscale: true
isAutoscale: true,
});
const monthlyPrice: number = hourlyPrice * Constants.hoursInAMonth;
const currency: string = getPriceCurrency(serverId);
@@ -196,8 +196,9 @@ export function getEstimatedAutoscaleSpendHtml(
`Estimated monthly cost (${currency}): <b>` +
`${currencySign}${calculateEstimateNumber(monthlyPrice / 10)} - ` +
`${currencySign}${calculateEstimateNumber(monthlyPrice)} </b> ` +
`(${regions} ${regions === 1 ? "region" : "regions"}, ${throughput /
10} - ${throughput} RU/s, ${currencySign}${pricePerRu}/RU)`
`(${regions} ${regions === 1 ? "region" : "regions"}, ${
throughput / 10
} - ${throughput} RU/s, ${currencySign}${pricePerRu}/RU)`
);
}
@@ -212,7 +213,7 @@ export function getEstimatedSpendHtml(
requestUnits: throughput,
numberOfRegions: regions,
multimasterEnabled: multimaster,
isAutoscale: false
isAutoscale: false,
});
const dailyPrice: number = hourlyPrice * 24;
const monthlyPrice: number = hourlyPrice * Constants.hoursInAMonth;
@@ -243,7 +244,7 @@ export function getEstimatedSpendAcknowledgeString(
requestUnits: throughput,
numberOfRegions: regions,
multimasterEnabled: multimaster,
isAutoscale: isAutoscale
isAutoscale: isAutoscale,
});
const dailyPrice: number = hourlyPrice * 24;
const monthlyPrice: number = hourlyPrice * Constants.hoursInAMonth;