chore: Update packet processing loop comment and debug log

This commit is contained in:
Marco Cadetg (aider)
2025-05-10 18:44:50 +02:00
parent 9e81ca1926
commit 6fff414b74

View File

@@ -714,7 +714,7 @@ impl NetworkMonitor {
let loop_start_time = Instant::now();
let mut packets_processed_in_loop = 0;
// Process a moderate number of packets per call to balance responsiveness and data capture
const MAX_PACKETS_PER_CALL: usize = 100; // Reduced from 1000 to 100
const MAX_PACKETS_PER_CALL: usize = 100; // Current value
for i in 0..MAX_PACKETS_PER_CALL {
match cap.next_packet() {
Ok(packet) => {