Author: bpoussin Date: 2014-07-18 20:20:13 +0200 (Fri, 18 Jul 2014) New Revision: 4042 Url: http://forge.codelutin.com/projects/isis-fish/repository/revisions/4042 Log: default to 1.3 to resize cache (before 3) Modified: trunk/src/main/java/fr/ifremer/isisfish/util/IsisCacheBackendOnGuava.java Modified: trunk/src/main/java/fr/ifremer/isisfish/util/IsisCacheBackendOnGuava.java =================================================================== --- trunk/src/main/java/fr/ifremer/isisfish/util/IsisCacheBackendOnGuava.java 2014-07-17 17:27:13 UTC (rev 4041) +++ trunk/src/main/java/fr/ifremer/isisfish/util/IsisCacheBackendOnGuava.java 2014-07-18 18:20:13 UTC (rev 4042) @@ -59,7 +59,7 @@ /** number of time steps to cache by interpolating from the first step*/ // perhaps allow the configuration - static public int CACHE_STEP = 3; + static public double CACHE_STEP = 1.3; // between 2 step, cache size is very close: 1.3 seem correct static public class IsisCacheBackendOnGuavaFactory implements IsisCacheBackend.Factory { @Override @@ -256,7 +256,7 @@ // after first step, use information to resize cache if (!adjusted) { - adjustedCache(stepAmount * CACHE_STEP); // keep place for 3 step + adjustedCache((long)(stepAmount * CACHE_STEP)); // keep place for 1.3 step adjusted = true; } }