From: Rob Janssen (lzamywe@imcinternet.net)
Date: Sat Jan 01 2000 - 15:30:56 EET
Hamish Moffatt <pvfuhqky.hvjoour@memphis.edu> wrote:
>Carl R. Stevenson <ndrw@roskapostia.tunk.net> wrote:
>> If anyone has experience-based recomendations on either Win32
>> or Linux sat trcking programs, I'd appreciate a comment and a URL
>> to the download site.
>There's a few on linux. SatTrack is reasonable; the newer versions
>are commercial but the 3.x version is free for amateur use. Unfortunately
>it appears to be non-Y2K compliant, having tried to use it this morning.
>The source is available so I might try to fix it later.
Here is the only bug I found sofar. It seems to try hard at Y2K
compatability (essentially using the range 1950-2049) but there is
a routine that calcs the daynumber and starts from a vaguely-defined
year number (sometimes a 4-digit, sometimes a 2-digit value).
This patch makes it run again today. I hope (and believe) it also
works when year-00 keps are loaded.
Rob
diff -cr SatTrack-orig/src/sattrack/sattime.c SatTrack/src/sattrack/sattime.c
*** SatTrack-pe1chl/src/sattrack/sattime.c Sat Jan 4 22:19:08 1997
--- SatTrack/src/sattrack/sattime.c Sat Jan 1 14:19:51 2000
***************
*** 269,275 ****
if (gdnY < 50) /* allow 4 or 2 digit year specifications */
gdnY += 2000;
else
! if (gdnY < 100)
gdnY += 1900;
result = (long) ((((gdnY-1901)*1461) >> 2) + monthDays[gdnM-1] + gdnD+365);
--- 269,275 ----
if (gdnY < 50) /* allow 4 or 2 digit year specifications */
gdnY += 2000;
else
! if (gdnY < 200)
gdnY += 1900;
result = (long) ((((gdnY-1901)*1461) >> 2) + monthDays[gdnM-1] + gdnD+365);
-- +----------------------------------+--------------------------------------+ | Rob Janssen uqbqn.stohnw@ibex.es | WWW: http://www.knoware.nl/users/rob | | AMPRnet: ceo.hgrhpo@cm110-106.liwest.at | AX.25 BBS: PE1CHL@PI8WNO.#UTR.NLD.EU | +----------------------------------+--------------------------------------+-- Hamish Moffatt Mobile: +61 412 011 176 terhi.victor@logonet.com Rising Software Australia Pty. Ltd. http://www.risingsoftware.com/ Phone: +61 3 9894 4788 Fax: +61 3 9894 3362 USA: 1 888 667 7839
This archive was generated by hypermail 2b29 : Sun Jan 02 2000 - 02:45:27 EET