From a9a5fdf9dd8ead5529263da1dd23150fb5945d24 Mon Sep 17 00:00:00 2001 From: Thomas Nordquist Date: Thu, 11 Jul 2019 22:07:56 +0200 Subject: [PATCH] Fix typo --- backend/src/Model/RingBuffer.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/src/Model/RingBuffer.ts b/backend/src/Model/RingBuffer.ts index 94a9580..727662b 100644 --- a/backend/src/Model/RingBuffer.ts +++ b/backend/src/Model/RingBuffer.ts @@ -9,12 +9,12 @@ export class RingBuffer { private items: Array = [] private start: number = 0 private end: number = 0 - private compactationFactor: number + private compactionFactor: number - constructor(capacity: number, maxItems = Infinity, compactationFactor: number = 10, ringBuffer?: RingBuffer) { + constructor(capacity: number, maxItems = Infinity, compactionFactor: number = 10, ringBuffer?: RingBuffer) { this.capacity = capacity this.maxItems = maxItems - this.compactationFactor = compactationFactor + this.compactionFactor = compactionFactor if (ringBuffer) { this.items = ringBuffer.toArray() @@ -68,7 +68,7 @@ export class RingBuffer { } public clone(): RingBuffer { - return new RingBuffer(this.capacity, this.maxItems, this.compactationFactor, this) + return new RingBuffer(this.capacity, this.maxItems, this.compactionFactor, this) } public toArray() {