Author: toad
Date: 2008-03-28 19:30:03 +0000 (Fri, 28 Mar 2008)
New Revision: 18813

Modified:
   trunk/freenet/src/freenet/node/LocationManager.java
Log:
Delete if it's over 10MB.

Modified: trunk/freenet/src/freenet/node/LocationManager.java
===================================================================
--- trunk/freenet/src/freenet/node/LocationManager.java 2008-03-28 19:28:17 UTC 
(rev 18812)
+++ trunk/freenet/src/freenet/node/LocationManager.java 2008-03-28 19:30:03 UTC 
(rev 18813)
@@ -585,6 +585,8 @@

                        public void run() {
                                File locationLog = new File(node.nodeDir, 
"location.log.txt");
+                               if(locationLog.exists() && locationLog.length() 
> 1024*1024*10)
+                                       locationLog.delete();
                                FileWriter fw = null;
                                try {
                                        fw = new FileWriter(locationLog, true);


Reply via email to