If using this code for a linux build by changing the comments then the sleep is in seconds not milliseconds like for Windows. If just the comments are removed then one ends up with a very long wait. I changed the interval to be calculated in seconds then added a 1000* in the Windows version of Sleep
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks Robert. I didn't see your post until now. My port to Linux was very flakey, but I'm trying to move my over to Lubuntu Linux myself so I've gone through it with a fine toothcomb just now. Many problems are fixed. It supports local time, waits better, and support windows and Linux compiles (at least for me). I'm quite interested in the "sunwait rise list 1 nogmt" option for creating timestamped job requests, that could survive reboots.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've just released version 0.6. It should handle local time now. The sleep problem on Linux is fixed (I hope); and the code is portable, without editing, on Linux and Windows. New minor-option "gmt/nogmt". Please let me know if it's broken, or I've misunderstood time in some new way. I still need time to "get over" the Greenwich Prime Meridian being moved 102 and bit metres away from where it should be.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If using this code for a linux build by changing the comments then the sleep is in seconds not milliseconds like for Windows. If just the comments are removed then one ends up with a very long wait. I changed the interval to be calculated in seconds then added a 1000* in the Windows version of Sleep
Thanks Robert. I didn't see your post until now. My port to Linux was very flakey, but I'm trying to move my over to Lubuntu Linux myself so I've gone through it with a fine toothcomb just now. Many problems are fixed. It supports local time, waits better, and support windows and Linux compiles (at least for me). I'm quite interested in the "sunwait rise list 1 nogmt" option for creating timestamped job requests, that could survive reboots.
I've just released version 0.6. It should handle local time now. The sleep problem on Linux is fixed (I hope); and the code is portable, without editing, on Linux and Windows. New minor-option "gmt/nogmt". Please let me know if it's broken, or I've misunderstood time in some new way. I still need time to "get over" the Greenwich Prime Meridian being moved 102 and bit metres away from where it should be.