mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-18 02:00:58 +00:00
reduced timeout for online declination lookup from 5s to 500ms
Change-Id: Ice59065b2f71b1610bd07b316b271fa1df724443
This commit is contained in:
1 parent
a3c0f6f0c2
commit
ca77a10748
1 file changed
+1
-1
+1
-1
@@ -87,7 +87,7 @@ public class ExpeditionWindTracker extends AbstractWindTracker implements Expedi
|
||||
try {
|
||||
Declination declination = declinationService.getDeclination(message.getTimePoint(),
|
||||
lastKnownPositionPerBoatID.get(message.getBoatID()),
|
||||
/* timeoutForOnlineFetchInMilliseconds */5000);
|
||||
/* timeoutForOnlineFetchInMilliseconds */500);
|
||||
if (declination != null) {
|
||||
windSpeed = new KnotSpeedWithBearingImpl(windSpeed.getKnots(), new DegreeBearingImpl(
|
||||
windSpeed.getBearing().getDegrees()).add(declination.getBearingCorrectedTo(message.getTimePoint())));
|
||||
|
||||
Reference in new issue
Block a user