]> git.puffer.fish Git - mirror/frr.git/commit
[lib] Fix timer precision.
authorJoakim Tjernlund <Joakim.Tjernlund@transmode.se>
Mon, 10 Nov 2008 08:33:30 +0000 (09:33 +0100)
committerPaul Jakma <paul@quagga.net>
Sat, 29 Nov 2008 18:04:22 +0000 (18:04 +0000)
commitb8192765a320f389e09bf7261e8902958ad21584
treedab031e7db5d0f844164b52391155af17a3c2a81
parent6e907dd4abdff9c52c809ea49c76d789b11c0e12
[lib] Fix timer precision.

Whenever a thread adds an timer funcname_thread_add_timer_timeval() gets called
to add the timer. Before adding the timer a quagga_gettimeofday() call
is made to do some time house keeping. However quagga_gettimeofday() only
updates recent_time, not relative_time that is used to calculate
the alarm_time. Replace with quagga_get_relative (NULL)
lib/thread.c