Add debug print statement to query_metrics for packet count in time range

This commit is contained in:
Yaro Kasear 2025-04-29 10:04:30 -05:00
parent deedca8d2f
commit 2a13eed6f9

View file

@ -138,6 +138,7 @@ class IndexedCapture:
def query_metrics(self, start_ts, end_ts, ap_bssid, ap_channel):
packets = self.get_packets_in_time_range(start_ts, end_ts)
print(f"[DEBUG] Packets in window: {len(packets)} between {start_ts} and {end_ts}")
# Use indexed data instead of recalculating
clients_on_ap = self._count_clients_on_ap(packets, ap_bssid)