diff options
author | Richard Basch <probe@mit.edu> | 1994-03-15 07:40:36 +0000 |
---|---|---|
committer | Richard Basch <probe@mit.edu> | 1994-03-15 07:40:36 +0000 |
commit | 5850535486d53a1ec78ef8ae77fbcc16e6b613bf (patch) | |
tree | 56782c17791fc710d1d52d5f1cfcd0e44917e468 /server | |
parent | be95b5b860d86e179e2dec6ca8415d78c556dce0 (diff) |
Use t_local structure, rather than calling gettimeofday()
Diffstat (limited to 'server')
-rw-r--r-- | server/dispatch.c | 4 |
1 files changed, 2 insertions, 2 deletions
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, |