From f7735739cb925c8b4743733a35d8152afec95c8c Mon Sep 17 00:00:00 2001 From: Laurent Garnier Date: Sat, 4 Nov 2023 11:51:34 +0100 Subject: [PATCH] Add 3 and 6 months and 2 years periods for (sitemap) charts Signed-off-by: Laurent Garnier --- .../org/openhab/core/ui/internal/chart/ChartServlet.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bundles/org.openhab.core.ui/src/main/java/org/openhab/core/ui/internal/chart/ChartServlet.java b/bundles/org.openhab.core.ui/src/main/java/org/openhab/core/ui/internal/chart/ChartServlet.java index 9464e1c4195..39b41ef3dcc 100644 --- a/bundles/org.openhab.core.ui/src/main/java/org/openhab/core/ui/internal/chart/ChartServlet.java +++ b/bundles/org.openhab.core.ui/src/main/java/org/openhab/core/ui/internal/chart/ChartServlet.java @@ -107,8 +107,9 @@ public class ChartServlet extends HttpServlet { entry("D", Duration.ofDays(1)), entry("2D", Duration.ofDays(2)), // entry("3D", Duration.ofDays(3)), entry("W", Duration.ofDays(7)), // entry("2W", Duration.ofDays(14)), entry("M", Duration.ofDays(30)), // - entry("2M", Duration.ofDays(60)), entry("4M", Duration.ofDays(120)), // - entry("Y", Duration.ofDays(365))// + entry("2M", Duration.ofDays(60)), entry("3M", Duration.ofDays(91)), // + entry("4M", Duration.ofDays(121)), entry("6M", Duration.ofDays(182)), // + entry("Y", Duration.ofDays(365)), entry("2Y", Duration.ofDays(730))// ); protected static final Map CHART_PROVIDERS = new ConcurrentHashMap<>();