summaryrefslogtreecommitdiff
path: root/server/timer.c
diff options
context:
space:
mode:
authorGravatar Richard Basch <probe@mit.edu>1994-03-15 07:40:09 +0000
committerGravatar Richard Basch <probe@mit.edu>1994-03-15 07:40:09 +0000
commitbe95b5b860d86e179e2dec6ca8415d78c556dce0 (patch)
tree1104eaf35b00c5408025dbb80397ff5e0236b273 /server/timer.c
parent21eae161e63bc4170a74a589ea92e3a3bf3cc9ed (diff)
Use t_local, rather than calling gettimeofday()
Diffstat (limited to 'server/timer.c')
-rw-r--r--server/timer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/timer.c b/server/timer.c
index 05d5fcb..a69e1b2 100644
--- a/server/timer.c
+++ b/server/timer.c
@@ -99,7 +99,7 @@ timer timer_set_rel (time_rel, proc, arg)
void *arg;
{
timer new_t;
- right_now = NOW;
+ right_now = t_local.tv_sec;
new_t = (timer) xmalloc(TIMER_SIZE);
if (new_t == NULL) return(NULL);
ALARM_TIME(new_t) = time_rel + right_now;
@@ -246,7 +246,7 @@ timer_process()
void * queue_arg;
int valid = 0;
- right_now = NOW;
+ right_now = t_local.tv_sec;
t=ALARM_NEXT(timers);
/* note that in the case that there are no timers, the ALARM_TIME
is set to 0L, which is what the main loop expects as the