diff --git a/src/fr/devinsy/statoolinfos/core/Service.java b/src/fr/devinsy/statoolinfos/core/Service.java index 065f857..f5d48f4 100644 --- a/src/fr/devinsy/statoolinfos/core/Service.java +++ b/src/fr/devinsy/statoolinfos/core/Service.java @@ -489,7 +489,8 @@ public class Service extends PathPropertyList MonthValues values = getMetricMonthValues("metrics.service.users"); - values = values.extract(YearMonth.now().minusMonths(1), YearMonth.now().minusMonths(1)); + YearMonth previousMonth = YearMonth.now().minusMonths(1); + values = values.extract(previousMonth, previousMonth); result = (long) values.sum();