mirror of
https://github.com/domcyrus/rustnet.git
synced 2026-01-05 21:40:01 -06:00
chore: Update packet processing loop comment and debug log
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user