1.修复IP top10 使用类型报错 由integer改为Long
2.Bps修正为bps
This commit is contained in:
@@ -267,8 +267,8 @@ public class DashboardController extends BaseController{
|
|||||||
//两个时间段之间的秒数
|
//两个时间段之间的秒数
|
||||||
double allSeconds = DateUtils.getSecondsOfTwoDate(sdf.parse(beginDate),sdf.parse(endDate));
|
double allSeconds = DateUtils.getSecondsOfTwoDate(sdf.parse(beginDate),sdf.parse(endDate));
|
||||||
for(TrafficIpActiveStatistic data:list) {
|
for(TrafficIpActiveStatistic data:list) {
|
||||||
data.setAvgByte(lf.format(Integer.parseInt(data.get_byte())*8/allSeconds));
|
data.setAvgByte(lf.format(Long.parseLong(data.get_byte())*8/allSeconds));
|
||||||
data.setAvgPacket(lf.format(Integer.parseInt(data.get_packet())/allSeconds));
|
data.setAvgPacket(lf.format(Long.parseLong(data.get_packet())/allSeconds));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Collections.sort(list, new Comparator<TrafficIpActiveStatistic>() {
|
Collections.sort(list, new Comparator<TrafficIpActiveStatistic>() {
|
||||||
|
|||||||
@@ -163,7 +163,7 @@
|
|||||||
<th><spring:message code="bytes"/></th>
|
<th><spring:message code="bytes"/></th>
|
||||||
<th><spring:message code="percentage"/> (<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="pps"/></th>
|
||||||
<th><spring:message code="second_bps"/></th>
|
<th class='lowercase'><spring:message code="second_bps"/></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody id="tableData"></tbody>
|
<tbody id="tableData"></tbody>
|
||||||
|
|||||||
@@ -121,7 +121,7 @@
|
|||||||
<th class="tl"><spring:message code="GByte"/></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="percentage"/> (<spring:message code="GByte"/>)</th>
|
||||||
<th class="tl"><spring:message code="pps"/></th>
|
<th class="tl"><spring:message code="pps"/></th>
|
||||||
<th class="tl"><spring:message code="second_bps"/></th>
|
<th class="tl lowercase"><spring:message code="second_bps"/></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody id="tableData"></tbody>
|
<tbody id="tableData"></tbody>
|
||||||
|
|||||||
@@ -83,7 +83,7 @@
|
|||||||
<th class="tl"><spring:message code="GByte"/></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="percentage"/> (<spring:message code="GByte"/>)</th>
|
||||||
<th class="tl"><spring:message code="pps"/></th>
|
<th class="tl"><spring:message code="pps"/></th>
|
||||||
<th class="tl"><spring:message code="second_bps"/></th>
|
<th class="tl lowercase"><spring:message code="second_bps"/></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody id="tableData"></tbody>
|
<tbody id="tableData"></tbody>
|
||||||
|
|||||||
@@ -101,7 +101,7 @@
|
|||||||
<th><spring:message code="packet"/></th>
|
<th><spring:message code="packet"/></th>
|
||||||
<th><spring:message code="stat_time"/></th>
|
<th><spring:message code="stat_time"/></th>
|
||||||
<th><spring:message code="pps"/></th>
|
<th><spring:message code="pps"/></th>
|
||||||
<th><spring:message code="second_bps"/></th>
|
<th class='lowercase'><spring:message code="second_bps"/></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody id="tbodyData">
|
<tbody id="tbodyData">
|
||||||
|
|||||||
@@ -108,7 +108,7 @@
|
|||||||
<th class="tl"><spring:message code="GByte"/></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="percentage"/> (<spring:message code="GByte"/>)</th>
|
||||||
<th class="tl"><spring:message code="pps"/></th>
|
<th class="tl"><spring:message code="pps"/></th>
|
||||||
<th class="tl"><spring:message code="second_bps"/></th>
|
<th class="tl lowercase"><spring:message code="second_bps"/></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody id="tableData"></tbody>
|
<tbody id="tableData"></tbody>
|
||||||
|
|||||||
@@ -151,7 +151,7 @@
|
|||||||
<th><spring:message code="GByte"/></th>
|
<th><spring:message code="GByte"/></th>
|
||||||
<th><spring:message code="percentage"/> (<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="pps"/> </th>
|
||||||
<th><spring:message code="second_bps"/></th>
|
<th class='lowercase'><spring:message code="second_bps"/></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody id="tableData"></tbody>
|
<tbody id="tableData"></tbody>
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ table.logTb td ~td {
|
|||||||
-moz-text-overflow: ellipsis;
|
-moz-text-overflow: ellipsis;
|
||||||
-webkit-text-overflow: ellipsis;
|
-webkit-text-overflow: ellipsis;
|
||||||
} */
|
} */
|
||||||
/*列表标题首字母大写 */
|
/*鍒楄〃鏍囬棣栧瓧姣嶅ぇ鍐<EFBFBD> */
|
||||||
table thead tr th{
|
table thead tr th:not(.lowercase){
|
||||||
text-transform: capitalize;
|
text-transform: capitalize;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user