sonyericssondev/DASH — pull request #10 by honggoff (2012-10-17 13:23:58+00:00)
Title: Fix sensors_worker to work with delays greater than or equal to 1 second...

sensors_worker behaved erratically when a delay greater or equal to one second was specified. Only the lower 32 bits of the nanosecond value were used, which would sometimes evaluate to a negative number.
The change handles the second- and subsecond parts correctly in sensors_nano_sleep. Alternatively the sensors_worker could store a struct timespec and do the conversion only once in sensors_worker_set_delay.