catch getNetInterfaceConfig
This commit is contained in:
parent
bad3fb89fc
commit
a3e6120bc7
|
@ -57,7 +57,11 @@ public class Ifconfig extends SigarCommandBase {
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i=0; i<ifNames.length; i++) {
|
for (int i=0; i<ifNames.length; i++) {
|
||||||
output(ifNames[i]);
|
try {
|
||||||
|
output(ifNames[i]);
|
||||||
|
} catch (SigarException e) {
|
||||||
|
println(ifNames[i] + "\t" + e.getMessage());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue