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