App趋势图时间粒度由5分钟改为1分钟

This commit is contained in:
zhangdongxu
2019-01-05 18:02:57 +08:00
parent 66b92f37d2
commit 9cd61f11ca

View File

@@ -1649,7 +1649,7 @@ public class DashboardService extends BaseService {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
while (calendar.getTime().compareTo(endDate) < 0) {
dateRangeList.add(calendar.getTime());
calendar.add(Calendar.MINUTE, Constants.TREND_TIME_INTERVAL);
calendar.add(Calendar.MINUTE, 1);
}
// 存放每个时间点的总数
Map<String, List<Long>> ipCountListMap = new HashMap<String, List<Long>>();