提交 c34fc493 编写于 作者: Y yong.you

modify the bug report last hour is default

上级 3f0e65b6
......@@ -94,8 +94,14 @@ public class Handler implements PageHandler<Context> {
Date start = null;
Date end = null;
if (payload.getAction() == Action.HOURLY_REPORT) {
if (payload.getPeriod().isCurrent()) {
start = new Date(payload.getDate() - TimeUtil.ONE_HOUR);
end = new Date(start.getTime());
} else {
start = new Date(payload.getDate());
end = new Date(start.getTime() + TimeUtil.ONE_HOUR);
}
} else {
start = payload.getHistoryStartDate();
end = payload.getHistoryEndDate();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册