Author: thesnark
Date: 2009-04-15 09:45:08 +0000 (Wed, 15 Apr 2009)
New Revision: 26833
Modified:
trunk/freenet/src/freenet/support/FileLoggerHook.java
Log:
Modified: trunk/freenet/src/freenet/support/FileLoggerHook.java
===================================================================
--- trunk/freenet/src/freenet/support/FileLoggerHook.java 2009-04-15
09:18:33 UTC (rev 26832)
+++ trunk/freenet/src/freenet/support/FileLoggerHook.java 2009-04-15
09:45:08 UTC (rev 26833)
@@ -217,8 +217,8 @@
buf.append('-');
pad2digits(buf, c.get(Calendar.MINUTE));
}
+ buf.append("." + digit);
buf.append(".log");
- buf.append("." + digit);
if(compressed) buf.append(".gz");
return buf.toString();
}
@@ -593,6 +593,8 @@
gc.set(Calendar.SECOND, 0);
gc.set(Calendar.MILLISECOND, 0);
long startTime = gc.getTimeInMillis();
+ //If a compressed log file already exists for a
given date,
+ //add a number to the end of the file that
already exists
for(int a = 1; currentFilename != null &&
currentFilename.exists(); a++){
numericSameDateFilename = new
File(getHourLogName(gc, a, true));
if(numericSameDateFilename != null &&
numericSameDateFilename.exists()){
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs