diff --git a/apps/performance/christmas-web-worker/src/app/heavy-calculation.service.ts b/apps/performance/christmas-web-worker/src/app/heavy-calculation.service.ts index 84ce1e6..06dedd1 100644 --- a/apps/performance/christmas-web-worker/src/app/heavy-calculation.service.ts +++ b/apps/performance/christmas-web-worker/src/app/heavy-calculation.service.ts @@ -6,14 +6,14 @@ export class HeavyCalculationService { private loadingLength = signal(0); loadingPercentage = computed( - () => (this.loadingLength() * 100) / this.finalLength + () => (this.loadingLength() * 100) / this.finalLength, ); startLoading() { - this.randomHeavyCalculalationFunction(); + this.randomHeavyCalculationFunction(); } - private randomHeavyCalculalationFunction() { + private randomHeavyCalculationFunction() { for (let num = 2; num <= 10000000; num++) { let randomFlag = true; for (let i = 2; i <= Math.sqrt(num); i++) {