From: Martin Mares Date: Sat, 11 Feb 2012 19:32:22 +0000 (+0100) Subject: Main: Use get_timestamp() for main_now X-Git-Tag: v5.0~45 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=e460f9a21d0af5b082f934fe0542baaf14f94b93;p=libucw.git Main: Use get_timestamp() for main_now --- 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 *