Merge branch 'Release-1.2' into develop
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
stat_time
|
stat_time
|
||||||
</sql>
|
</sql>
|
||||||
<select id="appChart" resultType="java.util.HashMap">
|
<select id="appChart" resultType="java.util.HashMap">
|
||||||
SELECT app_type appType, (SUM(c2s_pkt_num)+SUM(s2c_pkt_num)+SUM(c2s_byte_len)+SUM(s2c_byte_len)) count ,(SUM(c2s_pkt_num)+SUM(s2c_pkt_num)) pktNum,(SUM(c2s_byte_len)+SUM(s2c_byte_len)) byteLen
|
SELECT app_type appType, SUM(link_num) count, (SUM(c2s_pkt_num)+SUM(s2c_pkt_num)) pktNum,(SUM(c2s_byte_len)+SUM(s2c_byte_len)) byteLen
|
||||||
FROM galaxy.traffic_app_statistic
|
FROM galaxy.traffic_app_statistic
|
||||||
WHERE app_type !=0 and stat_time >= DATE_SUB((SELECT MAX(stat_time) FROM galaxy.traffic_app_statistic WHERE app_type != 0),INTERVAL 5 MINUTE)
|
WHERE app_type !=0 and stat_time >= DATE_SUB((SELECT MAX(stat_time) FROM galaxy.traffic_app_statistic WHERE app_type != 0),INTERVAL 5 MINUTE)
|
||||||
GROUP BY app_type order by count desc limit 0,10
|
GROUP BY app_type order by count desc limit 0,10
|
||||||
|
|||||||
Reference in New Issue
Block a user