I have noticed that my Ubuntu 12.04 linux system is not correctly
logging a timestamp while writing to a flat csv file.  Occasionally
the timestamps will have a backwards glitch, such as

34817.57976
34817.00157
34819.37487

(values are in seconds + decimal fraction)

If the middle value of 34817.00157 is changed to 34818.00157 then
things are okay.  This error occasionally happens about once per
thousand timestamps and always appears to be right when the time has
rolled to the next second.

I am using the sys/time.h header and compiled C code with the -lrt
(real time library) but the _tp struct is acting like the tv_sec did
NOT get updated when the tv_nsec rolled over > 10e9.

I am also running a ntp client, but just now enabled the loopstats
option in the ntp.conf file.  I believe ntpd is running just fine.

Could ntp be making minor adjustments to system time?  Or should I
look somewhere else?

This timestamp problem needs to be fixed before I can move to other
pressing problems.

Any ideas?
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to