Commit ce205e92 authored by 喻春霖's avatar 喻春霖

fixed

parents e425c666 73c1a8e0
......@@ -340,7 +340,8 @@ public class StatisticsController {
param.put("hour", i);
long count = authLogService.count(param, startDate);
hourList.add(i);
hourCountList.add(Double.valueOf(MathUtils.doubleDivide(count, latestDays, 0)).longValue());
long avgCount = Double.valueOf(MathUtils.doubleDivide(count, latestDays, 0)).longValue();
hourCountList.add(avgCount < 1? 1 : avgCount);
}
List<AuthLogHourCount> hourTopList = authLogService.hourMaxCount(commonParam, startDate, 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment