aboutsummaryrefslogtreecommitdiffstats
path: root/tap-rpcprogs.c
diff options
context:
space:
mode:
Diffstat (limited to 'tap-rpcprogs.c')
-rw-r--r--tap-rpcprogs.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/tap-rpcprogs.c b/tap-rpcprogs.c
index 51fc6a160e..533db827fa 100644
--- a/tap-rpcprogs.c
+++ b/tap-rpcprogs.c
@@ -135,12 +135,7 @@ rpcprogs_packet(void *dummy1 _U_, packet_info *pinfo, epan_dissect_t *edt _U_, c
}
/* calculate time delta between request and reply */
- delta.secs=pinfo->fd->abs_secs-ri->req_time.secs;
- delta.nsecs=pinfo->fd->abs_usecs*1000-ri->req_time.nsecs;
- if(delta.nsecs<0){
- delta.nsecs+=1000000000;
- delta.secs--;
- }
+ nstime_delta(&delta, &pinfo->fd->abs_ts, &ri->req_time);
if((rp->max.secs==0)
&& (rp->max.nsecs==0) ){