[Olsr-dev] httpinfo uptime
Henning Rogge
(spam-protected)
Fri Jun 20 11:31:57 CEST 2014
Olsrd2 has a better time support (it use 64 bit time in milliseconds
and CLOCK_MONOTONIC/CLOCK_MONOTONIC_RAW), but I don't think anyone
want to change the Olsrd1 time system anymore.
Henning
On Fri, Jun 20, 2014 at 11:16 AM, Jo-Philipp Wich <(spam-protected)> wrote:
> The httpinfo uptime is calculated from gettimeofday() results which are
> affected by things like NTP syncing.
>
> A proper solution would be to use
>
> clock_gettime(CLOCK_MONOTONIC, ×pec)
>
> or simply parsing /proc/uptime but both of these approaches are not
> portable I'm afraid.
>
> ~ Jow
>
>
> --
> Olsr-dev mailing list
> (spam-protected)
> https://lists.olsr.org/mailman/listinfo/olsr-dev
More information about the Olsr-dev
mailing list