mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-17 01:31:01 +00:00
improved logging for ShortTimeWindCache
This commit is contained in:
1 parent
ee261a5477
commit
a4db5aafad
1 file changed
+3
-3
+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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user