improved logging for ShortTimeWindCache

This commit is contained in:
Axel Uhl committed 2014-10-30 12:28:43 +01:00
1 parent ee261a5477
commit a4db5aafad
1 file changed
+3 -3
@@ -87,9 +87,6 @@ public class ShortTimeWindCache {
wind = cache.get(key);
if (wind == null) {
misses++;
if (misses % 100000l == 0 && logger.isLoggable(Level.FINE)) {
logger.fine("hits: " + hits + ", misses: " + misses);
}
wind = trackedRace.getWindWithConfidenceUncached(p, at, windSourcesToExclude);
if (wind != null) {
add(key, wind);
@@ -97,6 +94,9 @@ public class ShortTimeWindCache {
} else {
hits++;
}
if ((hits+misses) % 100000l == 0 && logger.isLoggable(Level.FINE)) {
logger.fine("hits: " + hits + ", misses: " + misses);
}
return wind;
}