Hi, Max. On Mon, 16 Feb 2004 18:14:07 -0800, Max Clark wrote in <[EMAIL PROTECTED]>: > I am pleased to announce the release of mrtgsql version 0.1 ... > Feedback and suggestions are always welcome.
Nice work! No offence, but don't forget Y2K problem ;) --- mrtgreport.orig Tue Feb 17 12:09:33 2004 +++ mrtgreport Tue Feb 17 12:15:36 2004 @@ -84,7 +84,9 @@ my @months = qw(31 28 31 30 31 30 31 31 30 31 30 31); -$months[1]++ if ($year + 1900) % 4 == 0; +$months[1]++ if (((($year + 1900) % 4 == 0) + && (($year + 1900) % 100 != 0)) + || (($year + 1900) % 400 == 0)) my $localstart = timelocal("0","0","0","1",$mon,$year); my $localend = timelocal("0","0","0",$months[$mon],$mon,$year); Regards, Takumi Yamane <[EMAIL PROTECTED]> -- Unsubscribe mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/mrtg FAQ http://faq.mrtg.org Homepage http://www.mrtg.org WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi