Author: toad
Date: 2008-11-28 17:30:27 +0000 (Fri, 28 Nov 2008)
New Revision: 23951

Modified:
   trunk/freenet/src/freenet/clients/http/FirstTimeWizardToadlet.java
Log:
Maximum autoconfigured disk space: 256GB. This will be a 128MB Bloom filter so 
should work almost anywhere. More than that is in any case probably a mistake 
e.g. on a huge shared network drive.


Modified: trunk/freenet/src/freenet/clients/http/FirstTimeWizardToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/FirstTimeWizardToadlet.java  
2008-11-28 17:28:07 UTC (rev 23950)
+++ trunk/freenet/src/freenet/clients/http/FirstTimeWizardToadlet.java  
2008-11-28 17:30:27 UTC (rev 23951)
@@ -573,7 +573,8 @@
                        String shortSize = null;
                        if(freeSpace / 20 > 1024 * 1024 * 1024) {
                                // If 20GB+ free, 5% of available disk space.
-                               shortSize = SizeUtil.formatSize(freeSpace / 20);
+                               // Maximum of 256GB. That's a 128MB bloom 
filter.
+                               shortSize = 
SizeUtil.formatSize(Math.min(freeSpace / 20, 256*1024*1024*1024L));
                        }else if(freeSpace / 10 > 1024 * 1024 * 1024) {
                                // If 10GB+ free, 10% of available disk space.
                                shortSize = SizeUtil.formatSize(freeSpace / 10);

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to