make sure mhz dont change
This commit is contained in:
parent
dfc17b0616
commit
f8a7c94beb
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue