mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-30 17:36:40 +00:00
added comments for bug 363
This commit is contained in:
1 parent
6bd7dd28f9
commit
9ed0a55392
1 file changed
+2
+2
@@ -260,6 +260,7 @@ public class WindChart implements Component<WindChartSettings>, RaceSelectionCha
|
||||
selectedRaceIdentifier = selectedRaces.iterator().next();
|
||||
timeOfEarliestRequestInMillis = null;
|
||||
timeOfLatestRequestInMillis = null;
|
||||
// TODO bug #363: if race is not in replay mode, fetch only up to now-delay
|
||||
loadData(selectedRaceIdentifier, /* from */ null, /* to */ null, /* append */ false);
|
||||
} else {
|
||||
clearChart();
|
||||
@@ -278,6 +279,7 @@ public class WindChart implements Component<WindChartSettings>, RaceSelectionCha
|
||||
if (timeOfEarliestRequestInMillis == null || timeOfEarliestRequestInMillis > date.getTime()) {
|
||||
loadData(selectedRaceIdentifier, null, date, /* append */ true);
|
||||
} else if (timeOfLatestRequestInMillis < date.getTime()) {
|
||||
// TODO bug #363: if race is not in replay mode, fetch only up to now-delay
|
||||
loadData(selectedRaceIdentifier, new Date(timeOfLatestRequestInMillis), /* to */ null, /* append */ true);
|
||||
}
|
||||
// otherwise the cache spans across date and so we don't need to load anything
|
||||
|
||||
Reference in new issue
Block a user