Ondrej Zajicek <santi...@crfreenet.org> wrote on 2010/11/06 19:24:22:
>
> On Sat, Nov 06, 2010 at 03:54:22PM +0100, Joakim Tjernlund wrote:
> > >
> > > Just came across
> > >
> > >     Keepalive timer:  -22205673/60
> > >
> > > Weird, isn't it?
> >
> > Does bird use gettimeofday() to drive its timers? If so it might
> > be a time jump that caused that.
>
> No, BIRD uses clock_gettime(CLOCK_MONOTONIC, ) if available, otherwise
> it uses time() (which isn't monotonic, but it is used in Linux 2.4.x
> (2.6.x has proper clock_gettime()) and there is a code around it that
> eliminates backward time jumps).

You can use ticks = times(NULL) instead of time()
I do that in Quagga which runs on our 2.4 boards.
You need to work around a bug though to make times()
reliable on Linux

Reply via email to