From 5850535486d53a1ec78ef8ae77fbcc16e6b613bf Mon Sep 17 00:00:00 2001 From: Richard Basch Date: Tue, 15 Mar 1994 07:40:36 +0000 Subject: Use t_local structure, rather than calling gettimeofday() --- server/dispatch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/dispatch.c') diff --git a/server/dispatch.c b/server/dispatch.c index 40dd7d1..9757b6a 100644 --- a/server/dispatch.c +++ b/server/dispatch.c @@ -500,7 +500,7 @@ xmit_frag(notice, buf, len, waitforack) nacked->na_packsz = len; nacked->na_uid = notice->z_uid; nacked->q_forw = nacked->q_back = nacked; - nacked->na_abstimo = NOW + abs_timo; + nacked->na_abstimo = t_local.tv_sec + abs_timo; /* set a timer to retransmit when done */ nacked->na_timer = timer_set_rel(rexmit_secs, @@ -615,7 +615,7 @@ xmit(notice, dest, auth, client) nacked->na_packsz = packlen; nacked->na_uid = notice->z_uid; nacked->q_forw = nacked->q_back = nacked; - nacked->na_abstimo = NOW + abs_timo; + nacked->na_abstimo = t_local.tv_sec + abs_timo; /* set a timer to retransmit when done */ nacked->na_timer = timer_set_rel(rexmit_secs, -- cgit v1.2.3