@@ -208,7 +208,7 @@ where
208208 // Here, either:
209209 // 1) No more packets can be retrived from egress, or
210210 // 2) A packet, that should enter the queue after `self.next_available` is seen.
211- // Thus the `dequeue_at()` see a correct queue, containing any packet that should
211+ // Thus the `dequeue_at()` sees a correct queue, containing any packet that should
212212 // enter the AQM at `self.next_available`.
213213 let mut packet = self . packet_queue . dequeue_at ( self . next_available ) ;
214214
@@ -503,8 +503,8 @@ where
503503 if let Some ( ( bandwidth, duration) ) = self . trace . next_bw ( ) {
504504 self . change_bandwidth ( bandwidth, change_time) ;
505505 self . next_change = change_time + duration;
506- // #[cfg(test)]
507- eprintln ! (
506+ #[ cfg( test) ]
507+ trace ! (
508508 "Bandwidth changed to {:?}, next change after {:?}. now {:?}" ,
509509 bandwidth,
510510 self . next_change - Instant :: now( ) ,
@@ -602,7 +602,7 @@ where
602602 // Here, either:
603603 // 1) No more packets can be retrived from egress, or
604604 // 2) A packet, that should enter the queue after `self.next_available` is seen.
605- // Thus the `dequeue_at()` see a correct queue, containing any packet that should
605+ // Thus the `dequeue_at()` sees a correct queue, containing any packet that should
606606 // enter the AQM at `self.next_available`.
607607 let mut packet = self . packet_queue . dequeue_at ( self . next_available ) ;
608608
@@ -655,7 +655,6 @@ where
655655 fn reset ( & mut self ) {
656656 self . next_available = * TRACE_START_INSTANT . get_or_init ( Instant :: now) ;
657657 self . next_change = * TRACE_START_INSTANT . get_or_init ( Instant :: now) ;
658- eprintln ! ( "Reset to {:?}" , self . next_change) ;
659658 }
660659
661660 fn change_state ( & self , state : CellState ) {
0 commit comments