Improved code.
This commit is contained in:
parent
a667d59072
commit
6c220602fd
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue