From 6f267323b1f10a6c152720d89dd91a94e7dbad9b Mon Sep 17 00:00:00 2001 From: David Ernst Date: Wed, 13 Mar 2024 15:43:48 -0700 Subject: [PATCH] Export calcMaxBursts to squelch unused warning --- db-data/2023-05-05-calc-max-burst.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db-data/2023-05-05-calc-max-burst.ts b/db-data/2023-05-05-calc-max-burst.ts index a0efe314..7ca85380 100644 --- a/db-data/2023-05-05-calc-max-burst.ts +++ b/db-data/2023-05-05-calc-max-burst.ts @@ -1,7 +1,7 @@ // Beginning of an algorithm to calculate max burst. // Goal is to use this to see the highest # of votes submitted in a 60 window, 10 second window, 1 second etc. -function calculateMaxBurst(timestamps: number[], windowSize: number): number { +export function calculateMaxBurst(timestamps: number[], windowSize: number): number { // Initialize variables let startIdx = 0 let endIdx = 0