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);