[SIGAR-117] fix Cpu.Percent ptql
This commit is contained in:
1 parent
1a0db053ed
commit
8316f5e619
2 files changed
+19
-1
No files matched your search
@@ -196,5 +196,15 @@ public class TestPTQL extends SigarTestCase {
|
||||
}
|
||||
this.qf.clear();
|
||||
}
|
||||
|
||||
public void testSelf() throws Exception {
|
||||
Sigar sigar = getSigar();
|
||||
|
||||
//should have eaten some cpu during this test
|
||||
ProcessQuery status =
|
||||
this.qf.getQuery("Cpu.Percent.ge=0.01");
|
||||
long pid = sigar.getPid();
|
||||
assertTrue(status.match(sigar, pid));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user