Full hard drive loses data
Easy-to-use personal time tracking application for Windows and Unix
Brought to you by:
cesilko
As in the title.
Similar to https://sourceforge.net/p/rachota/bugs/148/ and https://sourceforge.net/p/rachota/bugs/55/ I suppose, just a different trigger (full hard drive).
I think this should be sufficient to fix the issue (although not all are necessary)
There are 3 changes there, one implement the temporary file for writing, one avoiding overwriting the past week's data, the last one is just a performance improvement (it avoids flushing the file for each line).
I haven't tested the modified code again (don't want to fill up my hard drive just to test), but it should work.
Can we also not save the settings every 30 seconds? It shouldn't ever be necessary, the only time settings is changed is when settings dialog is closed and OK button is pressed...
(and if something is corrupted this will corrupt the settings file also)