Fix flow packet notional to sum all prints

This commit is contained in:
dirtydishes 2025-12-30 17:40:06 -05:00
parent 69758d28d9
commit 900b002ff7
2 changed files with 6 additions and 1 deletions

View file

@ -1782,7 +1782,10 @@ export default function HomePage() {
const count = parseNumber(features.count, packet.members.length);
const totalSize = parseNumber(features.total_size, 0);
const totalPremium = parseNumber(features.total_premium, 0);
const notional = totalPremium * 100;
const totalNotional = parseNumber(features.total_notional, Number.NaN);
const notional = Number.isFinite(totalNotional)
? totalNotional
: totalPremium * 100;
const startTs = parseNumber(features.start_ts, packet.source_ts);
const endTs = parseNumber(features.end_ts, startTs);
const windowMs = parseNumber(features.window_ms, 0);