From 06a6b9850aee4b53503d974464cd1f1fd356936c Mon Sep 17 00:00:00 2001 From: zhanghongqing Date: Wed, 12 Dec 2018 18:25:05 +0800 Subject: [PATCH] =?UTF-8?q?app=EF=BC=8C=E5=8D=8F=E8=AE=AE=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E5=88=97=E8=A1=A8=E8=B7=9F=E5=9B=BE=E8=A1=A8=E7=99=BE?= =?UTF-8?q?=E5=88=86=E6=AF=94=E4=B8=8D=E5=90=8C=E9=97=AE=E9=A2=98=E5=B7=B2?= =?UTF-8?q?=E8=A7=A3=E5=86=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/dashboard/TrafficStatisticsInfoController.java | 4 ++-- .../webapp/WEB-INF/views/dashboard/trafficAppTypeList.jsp | 2 +- .../WEB-INF/views/dashboard/trafficProtocolTypeList.jsp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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 ba2661386..361870dbc 100644 --- a/src/main/java/com/nis/web/controller/dashboard/TrafficStatisticsInfoController.java +++ b/src/main/java/com/nis/web/controller/dashboard/TrafficStatisticsInfoController.java @@ -270,7 +270,7 @@ public class TrafficStatisticsInfoController extends BaseController { Long totalPackets=0l; Double totalGByte=0d; DecimalFormat lf = new DecimalFormat("0"); - DecimalFormat df = new DecimalFormat("0.00"); + DecimalFormat df = new DecimalFormat("0.0000000000"); List appCodeList = CodeDicUtils.getCodeList("appCode"); if(!StringUtil.isEmpty(list)){ for (Object object : list) { @@ -338,7 +338,7 @@ public class TrafficStatisticsInfoController extends BaseController { Long totalPackets=0l; Double totalGByte=0d; DecimalFormat lf = new DecimalFormat("0"); - DecimalFormat df = new DecimalFormat("0.00"); + DecimalFormat df = new DecimalFormat("0.0000000000"); if(!StringUtil.isEmpty(list)){ for (Object object : list) { Map m=(Map) object; diff --git a/src/main/webapp/WEB-INF/views/dashboard/trafficAppTypeList.jsp b/src/main/webapp/WEB-INF/views/dashboard/trafficAppTypeList.jsp index 42d0f755e..a7ecb9ee0 100644 --- a/src/main/webapp/WEB-INF/views/dashboard/trafficAppTypeList.jsp +++ b/src/main/webapp/WEB-INF/views/dashboard/trafficAppTypeList.jsp @@ -263,7 +263,7 @@ function protocolTypeChart(rs){ $(rs).each(function(i, d) { data.push({ name: d.appName, - y: parseInt(d.GByte), + y: parseFloat(d.GByte), }); }); // 创建图例 diff --git a/src/main/webapp/WEB-INF/views/dashboard/trafficProtocolTypeList.jsp b/src/main/webapp/WEB-INF/views/dashboard/trafficProtocolTypeList.jsp index 3fad104ac..7e9d719ee 100644 --- a/src/main/webapp/WEB-INF/views/dashboard/trafficProtocolTypeList.jsp +++ b/src/main/webapp/WEB-INF/views/dashboard/trafficProtocolTypeList.jsp @@ -252,7 +252,7 @@ function protocolTypeChart(rs){ $(rs).each(function(i, d) { data.push({ name: d.protocolType, - y: parseInt(d.GByte), + y: parseFloat(d.GByte), }); }); // 创建图例