+ The spectrum is only computed for the addresses measure. +
+ {/if} diff --git a/apps/web/src/lib/components/netflow/file-detail-loader.svelte.ts b/apps/web/src/lib/components/netflow/file-detail-loader.svelte.ts index 29ecf452..e88164ab 100644 --- a/apps/web/src/lib/components/netflow/file-detail-loader.svelte.ts +++ b/apps/web/src/lib/components/netflow/file-detail-loader.svelte.ts @@ -1,8 +1,10 @@ import { DEFAULT_MAAD_IP_VERSION, + DEFAULT_MAAD_MEASURE, type FileIpCounts, type FlowDirection, type MaadIpVersion, + type MaadMeasure, type NetflowFileDetailsResponse, type NetflowFileSummaryRecord, type SpectrumData, @@ -72,14 +74,16 @@ function buildLoaderKey( dataset: string, slug: string, direction: FlowDirection, - ipVersion: MaadIpVersion + ipVersion: MaadIpVersion, + measure: MaadMeasure ): string { - return `${dataset}:${slug}:${direction}:${ipVersion}`; + return `${dataset}:${slug}:${direction}:${ipVersion}:${measure}`; } function buildScopeSearchParams( direction: FlowDirection, - ipVersion: MaadIpVersion + ipVersion: MaadIpVersion, + measure: MaadMeasure ): Record