use a default date of seven days ago instead of last year
This commit is contained in:
@@ -60,7 +60,7 @@ public class PdbController implements HardcodedValues {
|
|||||||
public ModelAndView index() {
|
public ModelAndView index() {
|
||||||
final String view = "main";
|
final String view = "main";
|
||||||
final Map<String, Object> model = new HashMap<>();
|
final Map<String, Object> model = new HashMap<>();
|
||||||
model.put("oldestValue", LocalDateTime.now().minusYears(1).format(DATE_FORMAT_BEGIN));
|
model.put("oldestValue", LocalDateTime.now().minusDays(7).format(DATE_FORMAT_BEGIN));
|
||||||
model.put("latestValue", LocalDateTime.now().format(DATE_FORMAT_END));
|
model.put("latestValue", LocalDateTime.now().format(DATE_FORMAT_END));
|
||||||
return new ModelAndView(view, model);
|
return new ModelAndView(view, model);
|
||||||
}
|
}
|
||||||
@@ -80,6 +80,7 @@ public class PdbController implements HardcodedValues {
|
|||||||
|
|
||||||
final String imageUrl = WEB_IMAGE_OUTPUT_PATH + "/" + result.getImageName();
|
final String imageUrl = WEB_IMAGE_OUTPUT_PATH + "/" + result.getImageName();
|
||||||
LOGGER.trace("image url: {}", imageUrl);
|
LOGGER.trace("image url: {}", imageUrl);
|
||||||
|
System.gc();
|
||||||
|
|
||||||
return new PlotResponse(DataSeries.toMap(result.getDataSeries()), imageUrl);
|
return new PlotResponse(DataSeries.toMap(result.getDataSeries()), imageUrl);
|
||||||
} catch (final NoDataPointsException e) {
|
} catch (final NoDataPointsException e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user