Fix average indexing

This commit is contained in:
maciejhirsz
2018-09-26 10:15:40 +02:00
parent 6ebebf2bff
commit 884b6e7fca
+1 -1
View File
@@ -43,7 +43,7 @@ export function noop() {}
export class NumStats<T extends number> {
private readonly stack: Array<T>;
private readonly history: number;
private index: 0;
private index = 0;
constructor(history: number) {
if (history < 1) {