]> git.pld-linux.org Git - packages/apinger.git/blame - apinger-avg_delay.patch
- don't exit on packet count mismatch, allows to use apinger as monitor
[packages/apinger.git] / apinger-avg_delay.patch
CommitLineData
45fdca65
JK
1diff -dur -x '*~' apinger-0.6.1.orig/src/apinger.c apinger-0.6.1/src/apinger.c
2--- apinger-0.6.1.orig/src/apinger.c 2003-03-26 12:24:59.000000000 +0100
3+++ apinger-0.6.1/src/apinger.c 2006-03-24 08:37:26.000000000 +0100
4@@ -586,7 +586,7 @@
5 timersub(&time_recv,&ti->timestamp,&tv);
6 delay=tv.tv_sec*1000.0+((double)tv.tv_usec)/1000.0;
7 debug("#%i from %s(%s) delay: %4.3fms",ti->seq,t->description,t->name,delay);
8- if (t->received>t->config->avg_delay_samples)
9+ if (t->received >= t->config->avg_delay_samples)
10 tmp=t->rbuf[t->received%t->config->avg_delay_samples];
11 else
12 tmp=0;
This page took 0.09571 seconds and 4 git commands to generate.