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) {
|
} catch (SigarNotImplementedException e) {
|
||||||
//ok
|
//ok
|
||||||
} catch (SigarException e) {
|
} catch (SigarException e) {
|
||||||
|
if (name.indexOf(':') == -1) {
|
||||||
fail("getNetInterfaceStat(" + name + "): " +
|
fail("getNetInterfaceStat(" + name + "): " +
|
||||||
e.getMessage());
|
e.getMessage());
|
||||||
|
} //else alias may not have metrics
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue