mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-10-20 18:56:21 +00:00
Fix average indexing
This commit is contained in:
1 parent
6ebebf2bff
commit
884b6e7fca
1 file changed
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user