Improved code.

This commit is contained in:
Christian P. MOMON 2022-01-11 16:01:51 +01:00
parent a667d59072
commit 6c220602fd

View file

@ -489,7 +489,8 @@ public class Service extends PathPropertyList
MonthValues values = getMetricMonthValues("metrics.service.users"); 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(); result = (long) values.sum();