From 243c81cb0c76fea822b1557dfe86c79063ca0524 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Mon, 21 Oct 2024 20:32:47 -0500 Subject: [PATCH] fix: dynamic sample count --- packages/website/src/components/Performance/Total.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/website/src/components/Performance/Total.tsx b/packages/website/src/components/Performance/Total.tsx index b063a6161..1919ba64a 100644 --- a/packages/website/src/components/Performance/Total.tsx +++ b/packages/website/src/components/Performance/Total.tsx @@ -29,7 +29,7 @@ export const Total = memo( const sum = useCallback( (slice: (tank: BlitzkitStats) => number) => { return tanks.reduce( - (acc, tank) => acc + tank.samples.total * slice(tank.mu), + (acc, tank) => acc + tank.samples[playerCountPeriod] * slice(tank.mu), 0, ); },