From 28691719d92f8e3429c7c5b4548d79cbd04307ff Mon Sep 17 00:00:00 2001 From: default Date: Mon, 17 Dec 2018 20:14:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BB=E9=A2=98=E7=82=B9=E5=87=BB=E8=BF=9B?= =?UTF-8?q?=E5=85=A5=E8=AF=A6=E6=83=85=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../webapp/WEB-INF/views/dashboard/dashBoardIndex.jsp | 2 +- .../WEB-INF/views/dashboard/trafficHttpStatisticList.jsp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/webapp/WEB-INF/views/dashboard/dashBoardIndex.jsp b/src/main/webapp/WEB-INF/views/dashboard/dashBoardIndex.jsp index 78ecc64b3..705bc357d 100644 --- a/src/main/webapp/WEB-INF/views/dashboard/dashBoardIndex.jsp +++ b/src/main/webapp/WEB-INF/views/dashboard/dashBoardIndex.jsp @@ -216,7 +216,7 @@
  <%-- --%> - <%-- --%>  --%> +  
diff --git a/src/main/webapp/WEB-INF/views/dashboard/trafficHttpStatisticList.jsp b/src/main/webapp/WEB-INF/views/dashboard/trafficHttpStatisticList.jsp index 623340593..cd9c146c0 100644 --- a/src/main/webapp/WEB-INF/views/dashboard/trafficHttpStatisticList.jsp +++ b/src/main/webapp/WEB-INF/views/dashboard/trafficHttpStatisticList.jsp @@ -208,11 +208,11 @@ function htmlData(fileDataS){ var html = ""; html+= ""+data.name+""; html+= ""+data.linkNum+""; - html+= ""+Math.round(data.linkNum/data.allLink*100)+"%"+""; + html+= ""+(data.linkNum/data.allLink*100).toFixed(2)+"%"+""; html+= ""+data.packets+""; - html+= ""+Math.round(data.packets/data.allPackets*100)+"%"+""; - html+= ""+Math.round(data.count/1073741824)+""; - html+= ""+Math.round(data.count/data.allGByte*100)+"%"+""; + html+= ""+(data.packets/data.allPackets*100).toFixed(2)+"%"+""; + html+= ""+(data.count/1073741824).toFixed(2)+""; + html+= ""+(data.count/data.allGByte*100).toFixed(2)+"%"+""; html+="" } $("#tableData").append(html);