1.修复IP top10 使用类型报错 由integer改为Long

2.Bps修正为bps

(cherry picked from commit 7210fca18f)
This commit is contained in:
tanghao
2019-01-18 08:00:18 +00:00
committed by 王鑫
parent 0409a5f8c8
commit 84e691d03b
8 changed files with 10 additions and 10 deletions

View File

@@ -267,8 +267,8 @@ public class DashboardController extends BaseController{
//两个时间段之间的秒数
double allSeconds = DateUtils.getSecondsOfTwoDate(sdf.parse(beginDate),sdf.parse(endDate));
for(TrafficIpActiveStatistic data:list) {
data.setAvgByte(lf.format(Integer.parseInt(data.get_byte())*8/allSeconds));
data.setAvgPacket(lf.format(Integer.parseInt(data.get_packet())/allSeconds));
data.setAvgByte(lf.format(Long.parseLong(data.get_byte())*8/allSeconds));
data.setAvgPacket(lf.format(Long.parseLong(data.get_packet())/allSeconds));
}
}
Collections.sort(list, new Comparator<TrafficIpActiveStatistic>() {

View File

@@ -163,7 +163,7 @@
<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>
<th class='lowercase'><spring:message code="second_bps"/></th>
</tr>
</thead>
<tbody id="tableData"></tbody>

View File

@@ -121,7 +121,7 @@
<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>
<th class="tl lowercase"><spring:message code="second_bps"/></th>
</tr>
</thead>
<tbody id="tableData"></tbody>

View File

@@ -83,7 +83,7 @@
<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>
<th class="tl lowercase"><spring:message code="second_bps"/></th>
</tr>
</thead>
<tbody id="tableData"></tbody>

View File

@@ -101,7 +101,7 @@
<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>
<th class='lowercase'><spring:message code="second_bps"/></th>
</tr>
</thead>
<tbody id="tbodyData">

View File

@@ -108,7 +108,7 @@
<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>
<th class="tl lowercase"><spring:message code="second_bps"/></th>
</tr>
</thead>
<tbody id="tableData"></tbody>

View File

@@ -151,7 +151,7 @@
<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>
<th class='lowercase'><spring:message code="second_bps"/></th>
</tr>
</thead>
<tbody id="tableData"></tbody>

View File

@@ -14,7 +14,7 @@ table.logTb td ~td {
-moz-text-overflow: ellipsis;
-webkit-text-overflow: ellipsis;
} */
/*列表标题首字母大写 */
table thead tr th{
/*鍒楄〃鏍囬棣栧瓧姣嶅ぇ鍐<EFBFBD> */
table thead tr th:not(.lowercase){
text-transform: capitalize;
}