mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: scaling
This commit is contained in:
1 parent
ea305b8ce5
commit
16bee48989
4 files changed
+78
-48
No files matched your search
@@ -9,6 +9,7 @@ import { discoveredIdsDefinitions } from '../../../../core/blitzkit/discoveredId
|
||||
export function Info() {
|
||||
const awaitedAverageDefinitions = use(averageDefinitions);
|
||||
const awaitedDiscoveredIdsDefinitions = use(discoveredIdsDefinitions);
|
||||
const numberFormat = Intl.NumberFormat(undefined, { notation: 'compact' });
|
||||
const ratio =
|
||||
awaitedDiscoveredIdsDefinitions.count /
|
||||
awaitedAverageDefinitions.scanned_players;
|
||||
@@ -20,13 +21,12 @@ export function Info() {
|
||||
<InfoCircledIcon />
|
||||
</Callout.Icon>
|
||||
<Callout.Text>
|
||||
Based on{' '}
|
||||
{Math.round(
|
||||
ratio * awaitedAverageDefinitions.sampled_players,
|
||||
).toLocaleString()}{' '}
|
||||
players with at least 5,000 career battles and 1 battle in the past
|
||||
120 days. {awaitedDiscoveredIdsDefinitions.count.toLocaleString()}{' '}
|
||||
scanned in total. Updated daily.
|
||||
Career stats based on{' '}
|
||||
{numberFormat.format(
|
||||
Math.round(ratio * awaitedAverageDefinitions.sampled_players),
|
||||
)}{' '}
|
||||
players with at least 5K career battles and 1 battle in the past 30
|
||||
days. Updated daily.
|
||||
</Callout.Text>
|
||||
</Callout.Root>
|
||||
</Flex>
|
||||
|
||||
Reference in new issue
Block a user