1.修复IP top10 使用类型报错 由integer改为Long
2.Bps修正为bps
(cherry picked from commit 7210fca18f)
This commit is contained in:
@@ -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>() {
|
||||
|
||||
Reference in New Issue
Block a user