port last fix also to netdata

pull/106/head
David Schweikert 8 years ago
parent ea37408c77
commit 32ab06bdd1

@ -8,7 +8,7 @@ UNRELEASED
* (bugfix) Fix issue compliling on RHEL/Centos 7 (#95, @jbackman) * (bugfix) Fix issue compliling on RHEL/Centos 7 (#95, @jbackman)
* (bugfix) Lower -i limit to 1 instead of 10 * (bugfix) Lower -i limit to 1 instead of 10
* (bugfix) Improve interval preciseness of -Q reporting * (bugfix) Improve interval preciseness of -Q reporting
* (bugfix) Fix occasional false positive in interval reporting (#97) * (bugfix) Fix occasional false positive in -Q reporting (#97)
2015-10-21 David Schweikert <david@schweikert.ch> 2015-10-21 David Schweikert <david@schweikert.ch>
* Version 3.13 * Version 3.13

@ -1323,8 +1323,12 @@ void print_netdata( void )
} }
/* if we just sent the probe and didn't receive a reply, we shouldn't count it */ /* if we just sent the probe and didn't receive a reply, we shouldn't count it */
h->discard_next_recv_i=0;
if( h->waiting && timeval_diff(&current_time, &h->last_send_time) < h->timeout) { if( h->waiting && timeval_diff(&current_time, &h->last_send_time) < h->timeout) {
if(h->num_sent_i) h->num_sent_i--; if(h->num_sent_i) {
h->num_sent_i--;
h->discard_next_recv_i=1;
}
} }

Loading…
Cancel
Save