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