From 6f43fbb2f088438dae20d4007df830863391b1c6 Mon Sep 17 00:00:00 2001 From: Ulf Lamping Date: Wed, 24 Aug 2005 21:31:56 +0000 Subject: EVERYTHING IN THE BUILDBOT IS GOING TO BE RED!!! Sorry! I've done more than a day to change the timestamp resolution from microseconds to nanoseconds. As I really don't want to loose those changes, I'm going to check in the changes I've done so far. Hopefully someone else will give me a helping hand with the things left ... What's done: I've changed the timestamp resolution from usec to nsec in almost any place in the sources. I've changed parts of the implementation in nstime.s/.h and a lot of places elsewhere. As I don't understand the editcap source (well, I'm maybe just too tired right now), hopefully someone else might be able to fix this soon. Doing all those changes, we get native nanosecond timestamp resolution in Ethereal. After fixing all the remaining issues, I'll take a look how to display this in a convenient way... As I've also changed the wiretap timestamp resolution from usec to nsec we might want to change the wiretap version number... svn path=/trunk/; revision=15520 --- tap-mgcpstat.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'tap-mgcpstat.c') diff --git a/tap-mgcpstat.c b/tap-mgcpstat.c index acd1980ae1..255970b7d4 100644 --- a/tap-mgcpstat.c +++ b/tap-mgcpstat.c @@ -101,12 +101,7 @@ mgcpstat_packet(void *pms, packet_info *pinfo, epan_dissect_t *edt _U_, const vo else { ms->open_req_num--; /* calculate time delta between request and response */ - delta.secs=pinfo->fd->abs_secs-mi->req_time.secs; - delta.nsecs=pinfo->fd->abs_usecs*1000-mi->req_time.nsecs; - if(delta.nsecs<0){ - delta.nsecs+=1000000000; - delta.secs--; - } + nstime_delta(&delta, &pinfo->fd->abs_ts, &mi->req_time); time_stat_update(&(ms->rtd[0]),&delta, pinfo); -- cgit v1.2.3