[mrtg] Re: mrtgsql - a MRTG to SQL logging and reporting tool

Takumi Yamane yamtak at b-session.com
Tue Feb 17 04:24:53 MET 2004


Hi, Max.

On Mon, 16 Feb 2004 18:14:07 -0800, Max Clark wrote 
in <F74DB710-60EE-11D8-A281-0050E47AE802 at cthought.com>:
> 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 <yamtak at b-session.com>

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
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



More information about the mrtg mailing list