diff --git a/enrichment/indexed_capture.py b/enrichment/indexed_capture.py index 5b95554..b143100 100644 --- a/enrichment/indexed_capture.py +++ b/enrichment/indexed_capture.py @@ -116,7 +116,6 @@ class IndexedCapture: timestamp = float(packet.frame_info.time_epoch) self.cisco_ssid_clients[ssid].append((timestamp, num_clients)) self.cisco_reported_clients.append(num_clients) - print(f"[DEBUG] Indexed {len(self.cisco_reported_clients)} Cisco client reports for SSID {ssid}.") bssid = getattr(wlan, 'bssid', '').lower() if not bssid or bssid == 'ff:ff:ff:ff:ff:ff': @@ -151,9 +150,6 @@ class IndexedCapture: packets = self.get_packets_in_time_range(start_ts, end_ts) - print("[DEBUG] Cisco SSIDs indexed:", list(self.cisco_ssid_clients.keys())) - print("[DEBUG] BSSID-to-SSID map:", self.bssid_to_ssid) - # Build local windowed structures window_clients = defaultdict(set) window_aps = defaultdict(set) @@ -300,22 +296,13 @@ class IndexedCapture: def _cisco_avg_clients(self, ssid, start_ts, end_ts): if ssid not in self.cisco_ssid_clients: - print(f"[DEBUG] No Cisco client data for SSID {ssid}") return 0 - # DEBUG: print window details - print(f"[DEBUG] Querying Cisco clients for SSID={ssid} between start_ts={start_ts} and end_ts={end_ts}") - hits = [] for ts, count in self.cisco_ssid_clients[ssid]: - print(f"[DEBUG] Cisco record ts={ts}, count={count}") if start_ts <= ts <= end_ts: - print(f"[DEBUG] --> Included in window!") hits.append(count) - if not hits: - print(f"[DEBUG] No Cisco client counts matched window for SSID={ssid}") - return round(mean(hits), 2) if hits else 0 def _cisco_max_clients(self, ssid, start_ts, end_ts):