From e460f9a21d0af5b082f934fe0542baaf14f94b93 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sat, 11 Feb 2012 20:32:22 +0100 Subject: [PATCH] Main: Use get_timestamp() for main_now --- ucw/mainloop.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ucw/mainloop.c b/ucw/mainloop.c index e81e26eb..6eb60d47 100644 --- a/ucw/mainloop.c +++ b/ucw/mainloop.c @@ -50,10 +50,7 @@ static void signal_del_ctx(struct main_context *m, struct main_signal *ms); static void main_get_time_ctx(struct main_context *m) { - struct timeval tv; - gettimeofday(&tv, NULL); - m->now_seconds = tv.tv_sec; - m->now = (timestamp_t)tv.tv_sec * 1000 + tv.tv_usec / 1000; + m->now = get_timestamp(); } static struct main_context * -- 2.39.5