On a reboot, the ethoscopes come back up and if a run was in progress they continue taking data for that run. If this happens however the time recorded in the conditions database starts from zero for all new records.
This pull request fixes that by checking the time the camera says the run started and using that as the zero offset. The only real change is at line 341, everything else is just whitespace removal, comments and a check the condition monitor thread is running before trying to join it.
On a reboot, the ethoscopes come back up and if a run was in progress they continue taking data for that run. If this happens however the time recorded in the conditions database starts from zero for all new records. This pull request fixes that by checking the time the camera says the run started and using that as the zero offset. The only real change is at line 341, everything else is just whitespace removal, comments and a check the condition monitor thread is running before trying to join it.