mirror of
https://github.com/gadgethd/ukmesh.git
synced 2026-09-16 20:12:35 +00:00
Per Ben's spec the "Observed packets" totals must count EVERY packet received by EVERY observer - duplicate receptions of the same packet by multiple stations each count. Reverts the COUNT(DISTINCT packet_hash) semantics from8dff7d7and additionally drops the privacy visibility filter from the totals so they match the chart rollup path (which has never been privacy-filtered - aggregateScope filters by network only). Changes: - packetsDay, totalPackets24h, totalPackets7d: COUNT(*) over all rows (network/test-topic scoped, rx_node_id present), no visibility filter - channelTraffic: COUNT(*) all rows (percentages stay consistent with the all-rows total denominator) - networkFilters(): new includePrivacy option (default true) so total queries can opt out of visibility conditions - legacy/observer-scoped chart series back to COUNT(*) (row semantics everywhere; transportCodes alias fix from40be809retained) - tests: includePrivacy coverage added Verified live: 24h total ~99k rows (vs 25k privacy-filtered, vs 5.8k distinct) - consistent with the hourly chart series which already counted all rows.