From e7e62591fe23566d2bb5685ade31d2a925ed726c Mon Sep 17 00:00:00 2001 From: ulfl 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... git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15520 f5534014-38df-0310-8fa8-9805f1628bb7 --- tap-afpstat.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tap-afpstat.c') diff --git a/tap-afpstat.c b/tap-afpstat.c index bedee12f1a..93e529e0de 100644 --- a/tap-afpstat.c +++ b/tap-afpstat.c @@ -64,9 +64,8 @@ afpstat_packet(void *pss, packet_info *pinfo, epan_dissect_t *edt _U_, const voi sp=&(ss->proc[request_val->command]); /* calculate time delta between request and reply */ - t.secs=pinfo->fd->abs_secs; - t.nsecs=pinfo->fd->abs_usecs*1000; - get_timedelta(&deltat, &t, &request_val->req_time); + t=pinfo->fd->abs_ts; + nstime_delta(&deltat, &t, &request_val->req_time); if(sp){ time_stat_update(sp,&deltat, pinfo); -- cgit v1.2.3