From 495d4cf2bd1ef7863dc71790dd0aced083c22644 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Fri, 8 Feb 2013 10:02:33 -0500 Subject: [PATCH] keep track of "newest" timestamp --- daemon/call.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/daemon/call.c b/daemon/call.c index 7c8ecb397..1f01a61ef 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -1978,6 +1978,11 @@ static void stats_query(struct call *call, str *fromtag, str *totag, struct call p = &cs->peers[i]; px = &cs->peers[i ^ 1]; + if (p->rtps[0].last > stats->newest) + stats->newest = p->rtps[0].last; + if (p->rtps[1].last > stats->newest) + stats->newest = p->rtps[1].last; + if (!fromtag->len) goto tag_match;