diff --git a/src/main/java/com/nis/web/controller/dashboard/TrafficStatisticsInfoController.java b/src/main/java/com/nis/web/controller/dashboard/TrafficStatisticsInfoController.java index 4ff850e4b..e8e002ddd 100644 --- a/src/main/java/com/nis/web/controller/dashboard/TrafficStatisticsInfoController.java +++ b/src/main/java/com/nis/web/controller/dashboard/TrafficStatisticsInfoController.java @@ -548,16 +548,12 @@ public class TrafficStatisticsInfoController extends BaseController { if(o1!=null&&o2==null){ return -1; } - if(o1==null&&o2==null){ + if(o1==o2&&o1==null){ return 0; } Map m1=(Map)o1; Map m2=(Map)o2; - if((Double)m1.get("byteCount")==(Double)m2.get("byteCount")){ - return 0; - } - int result=((Double)m1.get("byteCount")-(Double)m2.get("byteCount"))>0?-1:1; - return result; + return -((Double)m1.get("byteCount")).compareTo((Double)m2.get("byteCount")); } }); } catch (Exception e) { diff --git a/src/main/webapp/WEB-INF/views/cfg/intercept/interceptForm.jsp b/src/main/webapp/WEB-INF/views/cfg/intercept/interceptForm.jsp index 7d9302717..d10904252 100644 --- a/src/main/webapp/WEB-INF/views/cfg/intercept/interceptForm.jsp +++ b/src/main/webapp/WEB-INF/views/cfg/intercept/interceptForm.jsp @@ -701,9 +701,8 @@