X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Fsun.pl;h=07172ce05b34cafaa794bf840b9d7d6a2fc51fa0;hb=668e4252d23e2eda2a6b234f1031e1c1a5f43d15;hp=80eb54ee57985fe1af96077243969775ec3276d5;hpb=b96c31de4afb2f335cf1fb7bfac34e6b759ced79;p=spider.git diff --git a/cmd/show/sun.pl b/cmd/show/sun.pl index 80eb54ee..07172ce0 100644 --- a/cmd/show/sun.pl +++ b/cmd/show/sun.pl @@ -3,7 +3,7 @@ # show sunrise and sunset times for each callsign or prefix entered # # 1999/11/9 Steve Franke K9AN -# +# 2000/10/27 fixed bug involving degree to radian conversion. my ($self, $line) = @_; my @list = split /\s+/, $line; @@ -21,7 +21,7 @@ if (@list) { foreach $l (@list) { my $user = DXUser->get_current(uc $l); if ($user && $user->lat && $user->long) { - push @in, [$user->qth, $user->lat * $d2r, $user->long * -$d2r, uc $l ]; + push @in, [$user->qth, $user->lat, -$user->long, uc $l ]; } else { # prefixes ---> my @ans = Prefix::extract($l);