st.setNetNames(netNames);
Map<String, NetInterfaceConfig> netConfigs = new HashMap<String, NetInterfaceConfig>();
Map<String, NetInterfaceStat> netStats = new HashMap<String, NetInterfaceStat>();
Map<String, Double> netRxSpeed = new HashMap<String, Double>();
Map<String, Double> netTxSpeed = new HashMap<String, Double>();
SystemType stTemp = stList.get(stList.size() - 1);
for (int i = 0; i < netNames.length; i++) {
// if (netNames[i].toLowerCase().equals("lo")) {
// continue;
// }
NetInterfaceConfig netConfig = sigar
.getNetInterfaceConfig(netNames[i]);
NetInterfaceStat netStat = sigar
.getNetInterfaceStat(netNames[i]);
netConfigs.put(netNames[i], netConfig);
netStats.put(netNames[i], netStat);
double doubRx = 0.0;
double doubTx = 0.0;
if (stTemp != null && stTemp.getNetStats() != null) {
NetInterfaceStat netStatTemp = stTemp.getNetStats().get(
netNames[i]);
if (netStatTemp != null && netStatTemp.getRxBytes() > 0
&& netStatTemp.getTxBytes() > 0) {
doubRx = (netStat.getRxBytes() - netStatTemp
.getRxBytes()) / 5;