1.0;
request.setAttribute(MAX_SUM_ATTRIBUTE, maxSum);
}
Metric valueMetric = (Metric) value;
Map<DateTime, Double> sumEntries = valueMetric.groupSumByDate(
new MetricInterval.Daily(),
new DateTime().dayOfMonth().roundFloorCopy().minusDays(7),
null);
double sum = valueMetric.getSum();
long sumLong = (long) sum;
if (sumLong == sum) {
page.writeHtml(String.format("%,2d ", sumLong));