On 09/05/2012 05:25 PM, website reader wrote: > 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.
What function are you calling to fill the _tp struct? Where is this struct defined? galen -- Galen Seitz [email protected] _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
