流量统计菜单下所有菜单包含包总量和字节总量的列表:
增加两列pps 与 bps
This commit is contained in:
@@ -162,6 +162,8 @@
|
||||
<th><spring:message code="percentage"/> (<spring:message code="packets"/>)</th>
|
||||
<th><spring:message code="bytes"/></th>
|
||||
<th><spring:message code="percentage"/> (<spring:message code="bytes"/>)</th>
|
||||
<th><spring:message code="pps"/></th>
|
||||
<th><spring:message code="second_bps"/></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tableData"></tbody>
|
||||
@@ -317,6 +319,8 @@
|
||||
html += "<td class='tc'>" + data.pktPercent + " %</td>";
|
||||
html += "<td class='tc'>" + Math.round(data.byteNum*100)/100 + "</td>";
|
||||
html += "<td class='tc'>" + data.bytePercent + " %</td>";
|
||||
html += "<td class='tc'>" + data.pps + "</td>";
|
||||
html += "<td class='tc'>" + data.bps + "</td>";
|
||||
html += "</tr>"
|
||||
if(index==fileDataS.length-1){
|
||||
html+="<tr class='tr-total hidden'>"
|
||||
@@ -327,7 +331,9 @@
|
||||
html+= "<td class='tc'>"+"--"+"</td>";
|
||||
html+= "<td class='tc'>"+totalbyte+"</td>";
|
||||
html+= "<td class='tc'>"+"--"+"</td>";
|
||||
html+="</tr>"
|
||||
html+= "<td class='tc'>"+"--"+"</td>";
|
||||
html+= "<td class='tc'>"+"--"+"</td>";
|
||||
html+="</tr>"
|
||||
}
|
||||
}
|
||||
$("#tableData").append(html);
|
||||
|
||||
@@ -120,6 +120,8 @@
|
||||
<th class="tl"><spring:message code="percentage"/> (<spring:message code="packets"/>)</th>
|
||||
<th class="tl"><spring:message code="GByte"/></th>
|
||||
<th class="tl"><spring:message code="percentage"/> (<spring:message code="GByte"/>)</th>
|
||||
<th class="tl"><spring:message code="pps"/></th>
|
||||
<th class="tl"><spring:message code="second_bps"/></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tableData"></tbody>
|
||||
@@ -353,6 +355,8 @@ function htmlData(fileDataS){
|
||||
html+= "<td class='tc'>"+packper+"%"+"</td>";
|
||||
html+= "<td class='tc'>"+Math.round(data.GByte*100)/100+"</td>";
|
||||
html+= "<td class='tc'>"+gbytper+"%"+"</td>";
|
||||
html+= "<td class='tc'>"+data.pps+"</td>";
|
||||
html+= "<td class='tc'>"+data.bps+"</td>";
|
||||
html+="</tr>"
|
||||
if(index==fileDataS.length-1){
|
||||
html+="<tr class='tr-total hidden'>"
|
||||
@@ -364,6 +368,8 @@ function htmlData(fileDataS){
|
||||
html+= "<td class='tc'>"+"100%"+"</td>";
|
||||
html+= "<td class='tc'>"+Math.round(totalGByte*100)/100+"</td>";
|
||||
html+= "<td class='tc'>"+"100%"+"</td>";
|
||||
html+= "<td class='tc'>"+"--"+"</td>";
|
||||
html+= "<td class='tc'>"+"--"+"</td>";
|
||||
html+="</tr>"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -82,6 +82,8 @@
|
||||
<th class="tl"><spring:message code="percentage"/> (<spring:message code="packets"/>)</th>
|
||||
<th class="tl"><spring:message code="GByte"/></th>
|
||||
<th class="tl"><spring:message code="percentage"/> (<spring:message code="GByte"/>)</th>
|
||||
<th class="tl"><spring:message code="pps"/></th>
|
||||
<th class="tl"><spring:message code="second_bps"/></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tableData"></tbody>
|
||||
@@ -298,6 +300,8 @@ function htmlData(fileDataS){
|
||||
html+= "<td class='tc'>"+(data.packets/data.allPackets*100).toFixed(2)+"%"+"</td>";
|
||||
html+= "<td class='tc'>"+(data.count/1073741824).toFixed(2)+"</td>";
|
||||
html+= "<td class='tc'>"+(data.count/data.allGByte*100).toFixed(2)+"%"+"</td>";
|
||||
html+= "<td class='tc'>"+data.pps+"</td>";
|
||||
html+= "<td class='tc'>"+data.bps+"</td>";
|
||||
html+="</tr>"
|
||||
if(index==fileDataS.length-1){
|
||||
html+="<tr class='tr-total hidden'>"
|
||||
@@ -308,6 +312,8 @@ function htmlData(fileDataS){
|
||||
html+= "<td class='tc'>"+"100%"+"</td>";
|
||||
html+= "<td class='tc'>"+(data.allGByte/1073741824).toFixed(2)+"</td>";
|
||||
html+= "<td class='tc'>"+"100%"+"</td>";
|
||||
html+= "<td class='tc'>"+"--"+"</td>";
|
||||
html+= "<td class='tc'>"+"--"+"</td>";
|
||||
html+="</tr>"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -100,6 +100,8 @@
|
||||
<th><spring:message code="s2c_pkt_num"/></th>
|
||||
<th><spring:message code="packet"/></th>
|
||||
<th><spring:message code="stat_time"/></th>
|
||||
<th><spring:message code="pps"/></th>
|
||||
<th><spring:message code="second_bps"/></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbodyData">
|
||||
@@ -422,6 +424,8 @@ function showIpActiveChart(xData,series){
|
||||
html+= "<td class='tc'>"+rs.s2cPktNum+"</td>";
|
||||
html+= "<td class='tc'>"+packetNum+"</td>";
|
||||
html+= "<td class='tc'>"+rs.statTime+"</td>";
|
||||
html+= "<td class='tc'>"+rs.avgPacket+"</td>";
|
||||
html+= "<td class='tc'>"+rs.avgByte+"</td>";
|
||||
html+="</tr>"
|
||||
|
||||
if(i==data.length-1){
|
||||
@@ -435,6 +439,8 @@ function showIpActiveChart(xData,series){
|
||||
html+= "<td class='tc'>"+totalc2sPkt+"</td>";
|
||||
html+= "<td class='tc'>"+totals2cPkt+"</td>";
|
||||
html+= "<td class='tc'>"+totalpacket+"</td>";
|
||||
html+= "<td class='tc'>"+"--"+"</td>";
|
||||
html+= "<td class='tc'>"+"--"+"</td>";
|
||||
html+= "<td class='tc'>"+"--"+"</td>";
|
||||
html+="</tr>"
|
||||
}
|
||||
|
||||
@@ -107,6 +107,8 @@
|
||||
<th class="tl"><spring:message code="percentage"/> (<spring:message code="packets"/>)</th>
|
||||
<th class="tl"><spring:message code="GByte"/></th>
|
||||
<th class="tl"><spring:message code="percentage"/> (<spring:message code="GByte"/>)</th>
|
||||
<th class="tl"><spring:message code="pps"/></th>
|
||||
<th class="tl"><spring:message code="second_bps"/></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tableData"></tbody>
|
||||
@@ -343,6 +345,8 @@ function htmlData(fileDataS){
|
||||
html+= "<td class='tc'>"+packper+"%"+"</td>";
|
||||
html+= "<td class='tc'>"+Math.round(data.GByte*100)/100+"</td>";
|
||||
html+= "<td class='tc'>"+gbytper+"%"+"</td>";
|
||||
html+= "<td class='tc'>"+data.pps+"</td>";
|
||||
html+= "<td class='tc'>"+data.bps+"</td>";
|
||||
html+="</tr>"
|
||||
if(index==fileDataS.length-1){
|
||||
html+="<tr class='tr-total hidden'>"
|
||||
@@ -353,6 +357,8 @@ function htmlData(fileDataS){
|
||||
html+= "<td class='tc'>"+"100%"+"</td>";
|
||||
html+= "<td class='tc'>"+Math.round(totalGByte*100)/100+"</td>";
|
||||
html+= "<td class='tc'>"+"100%"+"</td>";
|
||||
html+= "<td class='tc'>"+"——"+"</td>";
|
||||
html+= "<td class='tc'>"+"——"+"</td>";
|
||||
html+="</tr>"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -150,6 +150,8 @@
|
||||
<th><spring:message code="percentage"/> (<spring:message code="packets"/>)</th>
|
||||
<th><spring:message code="GByte"/></th>
|
||||
<th><spring:message code="percentage"/> (<spring:message code="GByte"/>)</th>
|
||||
<th><spring:message code="pps"/> </th>
|
||||
<th><spring:message code="second_bps"/></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tableData"></tbody>
|
||||
@@ -398,6 +400,8 @@
|
||||
html += "<td class='tc'>" + packper + " %</td>";
|
||||
html += "<td class='tc'>" + Math.round(data.Gbyte*100)/100 + "</td>";
|
||||
html += "<td class='tc'>" + gbytper + " %</td>";
|
||||
html += "<td class='tc'>" + data.pps + "</td>";
|
||||
html += "<td class='tc'>" + data.bps + "</td>";
|
||||
html += "</tr>"
|
||||
if(index==fileDataS.length-1){
|
||||
html+="<tr class='tr-total hidden'>"
|
||||
@@ -409,6 +413,8 @@
|
||||
html+= "<td class='tc'>"+"100%"+"</td>";
|
||||
html+= "<td class='tc'>"+parseInt(totalGbyte).toFixed(2)+"</td>";
|
||||
html+= "<td class='tc'>"+"100%"+"</td>";
|
||||
html+= "<td class='tc'>"+"--"+"</td>";
|
||||
html+= "<td class='tc'>"+"--"+"</td>";
|
||||
html+="</tr>"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user