Increment counter by number of packets received (#1049)
So that we can see the total packets/s
This commit is contained in:
parent
d4c41219f9
commit
cabe80b129
|
@ -247,7 +247,7 @@ impl Packets {
|
|||
trace!("receiving on {}", socket.local_addr().unwrap());
|
||||
match socket.recv_from(&mut p.data) {
|
||||
Err(_) if i > 0 => {
|
||||
inc_new_counter_info!("packets-recv_count", 1);
|
||||
inc_new_counter_info!("packets-recv_count", i);
|
||||
debug!("got {:?} messages on {}", i, socket.local_addr().unwrap());
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue