修复web端管理节点负载不显示国标收流 #871

This commit is contained in:
648540858
2023-05-30 10:54:09 +08:00
parent 50240b4e39
commit 9ff1613d3b
5 changed files with 30 additions and 12 deletions

View File

@@ -191,8 +191,6 @@ public interface IRedisCatchStorage {
int getProxyStreamCount(String id);
int getGbReceiveCount(String id);
int getGbSendCount(String id);
void addDiskInfo(List<Map<String, Object>> diskInfo);

View File

@@ -586,15 +586,6 @@ public class RedisCatchStorageImpl implements IRedisCatchStorage {
return RedisUtil.scan(redisTemplate, key).size();
}
@Override
public int getGbReceiveCount(String id) {
String playKey = VideoManagerConstants.PLAYER_PREFIX + "_" + userSetting.getServerId() + "_" + id + "_*";
String playBackKey = VideoManagerConstants.PLAY_BLACK_PREFIX + "_" + userSetting.getServerId() + "_" + id + "_*";
String downloadKey = VideoManagerConstants.DOWNLOAD_PREFIX + "_" + userSetting.getServerId() + "_" + id + "_*";
return RedisUtil.scan(redisTemplate, playKey).size() + RedisUtil.scan(redisTemplate, playBackKey).size() + RedisUtil.scan(redisTemplate, downloadKey).size();
}
@Override
public int getGbSendCount(String id) {
String key = VideoManagerConstants.PLATFORM_SEND_RTP_INFO_PREFIX