[Olsr-dev] httpinfo uptime

Jo-Philipp Wich (spam-protected)
Fri Jun 20 11:16:36 CEST 2014

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, &timespec)

or simply parsing /proc/uptime but both of these approaches are not
portable I'm afraid.

~ Jow

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.olsr.org/pipermail/olsr-dev/attachments/20140620/00f863b6/attachment.sig>

More information about the Olsr-dev mailing list