app,协议详情列表跟图表百分比不同问题已解决

This commit is contained in:
zhanghongqing
2018-12-12 18:25:05 +08:00
parent 4a1a524295
commit 06a6b9850a
3 changed files with 4 additions and 4 deletions

View File

@@ -270,7 +270,7 @@ public class TrafficStatisticsInfoController extends BaseController {
Long totalPackets=0l; Long totalPackets=0l;
Double totalGByte=0d; Double totalGByte=0d;
DecimalFormat lf = new DecimalFormat("0"); DecimalFormat lf = new DecimalFormat("0");
DecimalFormat df = new DecimalFormat("0.00"); DecimalFormat df = new DecimalFormat("0.0000000000");
List<CodeResult> appCodeList = CodeDicUtils.getCodeList("appCode"); List<CodeResult> appCodeList = CodeDicUtils.getCodeList("appCode");
if(!StringUtil.isEmpty(list)){ if(!StringUtil.isEmpty(list)){
for (Object object : list) { for (Object object : list) {
@@ -338,7 +338,7 @@ public class TrafficStatisticsInfoController extends BaseController {
Long totalPackets=0l; Long totalPackets=0l;
Double totalGByte=0d; Double totalGByte=0d;
DecimalFormat lf = new DecimalFormat("0"); DecimalFormat lf = new DecimalFormat("0");
DecimalFormat df = new DecimalFormat("0.00"); DecimalFormat df = new DecimalFormat("0.0000000000");
if(!StringUtil.isEmpty(list)){ if(!StringUtil.isEmpty(list)){
for (Object object : list) { for (Object object : list) {
Map m=(Map) object; Map m=(Map) object;

View File

@@ -263,7 +263,7 @@ function protocolTypeChart(rs){
$(rs).each(function(i, d) { $(rs).each(function(i, d) {
data.push({ data.push({
name: d.appName, name: d.appName,
y: parseInt(d.GByte), y: parseFloat(d.GByte),
}); });
}); });
// 创建图例 // 创建图例

View File

@@ -252,7 +252,7 @@ function protocolTypeChart(rs){
$(rs).each(function(i, d) { $(rs).each(function(i, d) {
data.push({ data.push({
name: d.protocolType, name: d.protocolType,
y: parseInt(d.GByte), y: parseFloat(d.GByte),
}); });
}); });
// 创建图例 // 创建图例