1.修复IP top10 使用类型报错 由integer改为Long

2.Bps修正为bps

(cherry picked from commit 7210fca18f)
This commit is contained in:
tanghao
2019-01-18 08:00:18 +00:00
committed by 王鑫
parent 0409a5f8c8
commit 84e691d03b
8 changed files with 10 additions and 10 deletions

View File

@@ -267,8 +267,8 @@ public class DashboardController extends BaseController{
//两个时间段之间的秒数
double allSeconds = DateUtils.getSecondsOfTwoDate(sdf.parse(beginDate),sdf.parse(endDate));
for(TrafficIpActiveStatistic data:list) {
data.setAvgByte(lf.format(Integer.parseInt(data.get_byte())*8/allSeconds));
data.setAvgPacket(lf.format(Integer.parseInt(data.get_packet())/allSeconds));
data.setAvgByte(lf.format(Long.parseLong(data.get_byte())*8/allSeconds));
data.setAvgPacket(lf.format(Long.parseLong(data.get_packet())/allSeconds));
}
}
Collections.sort(list, new Comparator<TrafficIpActiveStatistic>() {