added comments for bug 363

This commit is contained in:
Axel Uhl committed 2012-03-02 10:15:52 +01:00
1 parent 6bd7dd28f9
commit 9ed0a55392
1 file changed
+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