CREDITS

This file documents patches and contributions accepted for V1.0.0
and beyond.

V1.0.0

From Geoff Kuenning:

I'm pretty fond of gkrellsun.  I used to run gkrellmoon as well, but
then you combined them.  But I thought it would be cool to have the
display automatically switch to the moon display after sunset (since
the nighttime sun display isn't as informative, other than giving the
sunrise time).  There's now a "Change to moon at night" button to do
that.  If you have timed sun/moon switching enabled, that still works,
but there's a rather odd interaction in that the sun/moon decision is
inverted at nighttime.  One could consider that a feature. :-)

I also changed the update interval to be 1 minute instead of 5; that
works better with the darkness-switching code and still puts minimal
load on the machine.

In the process, I also discovered a number of calculation errors.  The
most common mistake was in excessive use of DBL_EPSILON, especially in
inequality comparisons.  For example, consider the following code:

   if (RA_Sun < DBL_EPSILON) RA_Sun += 24.0;

For the sake of argument, assume DBL_EPSILON is 0.5.  Then the above
code will produce a value for RA_Sun in the range of [0.5,24.5), which
is clearly incorrect since right ascension is defined to be in the
range [0,24).  The corrected code compares against zero.

I made similar changes in the MoonRise code, which I lifted from
gkrellmoon.

Most of these changes have little practical effect on the
calculations, since the value of DBL_EPSILON is so small.  However,
I recall that there was one place where a rounding error made the
plugin produce wildly incorrect data; I don't recall the details but I
know that it was the reason I uncovered all the calculation mistakes.
