dont fail getNetInterfaceStat for aliases
This commit is contained in:
parent
4344a1457a
commit
4ecf30d8e9
|
@ -61,8 +61,10 @@ public class TestNetIf extends SigarTestCase {
|
|||
} catch (SigarNotImplementedException e) {
|
||||
//ok
|
||||
} catch (SigarException e) {
|
||||
fail("getNetInterfaceStat(" + name + "): " +
|
||||
e.getMessage());
|
||||
if (name.indexOf(':') == -1) {
|
||||
fail("getNetInterfaceStat(" + name + "): " +
|
||||
e.getMessage());
|
||||
} //else alias may not have metrics
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue