commit | 726f22c2b339b6cf8c11875c2ca1fbdd787fd74b | [log] [tgz] |
---|---|---|
author | Holger Hans Peter Freyther <zecke@selfish.org> | Thu Jul 29 03:01:55 2010 +0800 |
committer | Holger Hans Peter Freyther <zecke@selfish.org> | Thu Jul 29 03:04:57 2010 +0800 |
tree | 03ba0ad89a026b7fae4437a8f31f62ce8b778437 | |
parent | a65a0e72bd7de1148ee5614012dba005f70193cd [diff] [blame] |
mgcp: Attempt to count lost packets better...
diff --git a/openbsc/src/mgcp/mgcp_network.c b/openbsc/src/mgcp/mgcp_network.c index 137aa93..cc1bf44 100644 --- a/openbsc/src/mgcp/mgcp_network.c +++ b/openbsc/src/mgcp/mgcp_network.c
@@ -109,7 +109,7 @@ if (*last_seq == 0) *last_seq = seq; else if (*last_seq + 1 != seq) - *lost += abs(*last_seq - seq); + *lost = abs(seq - (*last_seq + 1)); *last_seq = seq;