交换机采集数据优化
This commit is contained in:
@@ -396,11 +396,9 @@ public class SwitchBoardServiceImpl implements SwitchBoardService {
|
||||
}
|
||||
String[] ifOIDs = oidParams.keySet().toArray(new String[0]);
|
||||
String[] params = oidParams.values().toArray(new String[0]);
|
||||
boolean isTrue = true;
|
||||
if(!StringUtils.equals(type,"switchNet") && !StringUtils.equals(type,"switchModule")
|
||||
&& !StringUtils.equals(type,"switchMpu") && !StringUtils.equals(type,"switchPwr")
|
||||
&& !StringUtils.equals(type,"switchFan")){
|
||||
isTrue = false;
|
||||
String os = "";
|
||||
String ps = "";
|
||||
for (int i = 0; i < params.length; i++) {
|
||||
@@ -416,9 +414,7 @@ public class SwitchBoardServiceImpl implements SwitchBoardService {
|
||||
}
|
||||
ifOIDs = os.split(",");
|
||||
params = ps.split(",");
|
||||
|
||||
|
||||
|
||||
ifNumber = 1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user