The whole file naming section in support/FileLoggerHook.java needs a
re-think.  

    protected String getHourLogName(Calendar c) {
        return baseFilename + "-" + c.get(c.YEAR) + "-" + pad2(c.get(c.MONTH + 1)) +
            "-" + pad2(c.get(c.DAY_OF_MONTH)) + "-" + pad2(c.get(c.HOUR_OF_DAY)) +
            (INTERVAL == c.MINUTE ? ("-" + pad2(c.get(c.MINUTE))) : "");
    }

Note the +1 I added.  It's currently 2003-09-01 here, according to the freenet
logs.  It's also not-customary to display down to the hour when you're
rotating monthly.

It's one of those warts:  not really bad, but ugly and should be fixed.
I'll see about reflowing it once I've got some free time if nobody else
hits it.  It's a fairly trivial bit of code.

--Dan

Attachment: pgp00000.pgp
Description: PGP signature

_______________________________________________
Devl mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/devl

Reply via email to