|
@@ -260,13 +260,9 @@ public class SerialNumberUtil {
|
|
if (info.indexOf(record) != -1) {
|
|
if (info.indexOf(record) != -1) {
|
|
info.replace(" ", "");
|
|
info.replace(" ", "");
|
|
String[] sn = info.split(symbol);
|
|
String[] sn = info.split(symbol);
|
|
- for (int i = 0; i < sn.length; i++) {// 不管是单块CPU还是多CPU都适用
|
|
|
|
- String cpuId = sn[i];
|
|
|
|
- cpuIds.add(cpuId);
|
|
|
|
- System.out.println("第" + (i + 1) + "块CPU信息" + cpuId);
|
|
|
|
- }
|
|
|
|
- return cpuIds;
|
|
|
|
|
|
+ cpuIds.add(sn[1]);
|
|
}
|
|
}
|
|
|
|
+ return cpuIds;
|
|
}
|
|
}
|
|
|
|
|
|
return null;
|
|
return null;
|