Copy time_to_sleep to time_remaining since it can be left uninitialized if nanosleep returns early with agr error
Copy time_to_sleep to time_remaining since it can be left
uninitialized if nanosleep returns early with agr error

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase