catch getNetInterfaceConfig
This commit is contained in:
1 parent
bad3fb89fc
commit
a3e6120bc7
1 file changed
+5
-1
@@ -57,7 +57,11 @@ public class Ifconfig extends SigarCommandBase {
|
||||
}
|
||||
|
||||
for (int i=0; i<ifNames.length; i++) {
|
||||
output(ifNames[i]);
|
||||
try {
|
||||
output(ifNames[i]);
|
||||
} catch (SigarException e) {
|
||||
println(ifNames[i] + "\t" + e.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user