make sure mhz dont change

This commit is contained in:
Doug MacEachern 2005-02-17 01:48:25 +00:00
parent dfc17b0616
commit f8a7c94beb
1 changed files with 4 additions and 0 deletions

View File

@ -23,5 +23,9 @@ public class TestCpuInfo extends SigarTestCase {
traceln("mhz=" + info.getMhz()); traceln("mhz=" + info.getMhz());
traceln("cache size=" + info.getCacheSize()); traceln("cache size=" + info.getCacheSize());
} }
int mhz = infos[0].getMhz();
int current = sigar.getCpuInfoList()[0].getMhz();
assertEquals("Mhz=" + current + "/" + mhz, current, mhz);
} }
} }