dont fail getNetInterfaceStat for aliases

This commit is contained in:
Doug MacEachern 2008-02-22 18:41:06 +00:00
parent 4344a1457a
commit 4ecf30d8e9
1 changed files with 4 additions and 2 deletions

View File

@ -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
} }
} }
} }