mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
fix: dynamic sample count
This commit is contained in:
1 parent
7cef95e150
commit
243c81cb0c
1 file changed
+1
-1
@@ -29,7 +29,7 @@ export const Total = memo<TotalProps>(
|
||||
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,
|
||||
);
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user