[SIGAR-106] rename cpu steal -> stolen
This commit is contained in:
1 parent
87b194fbb1
commit
51dd062f7e
13 files changed
+26
-25
No files matched your search
@@ -453,7 +453,7 @@ use vars qw(%classes %cmds);
|
||||
plat => 'L'
|
||||
},
|
||||
{
|
||||
name => 'steal', type => 'Long',
|
||||
name => 'stolen', type => 'Long',
|
||||
desc => 'Total system cpu involuntary wait time',
|
||||
plat => 'L'
|
||||
},
|
||||
@@ -500,7 +500,7 @@ use vars qw(%classes %cmds);
|
||||
plat => 'L'
|
||||
},
|
||||
{
|
||||
name => 'steal', type => 'Double',
|
||||
name => 'stolen', type => 'Double',
|
||||
desc => 'Percent system cpu involuntary wait time',
|
||||
plat => 'L'
|
||||
},
|
||||
|
||||
@@ -32,7 +32,7 @@ public class CpuPerc implements java.io.Serializable {
|
||||
private double wait;
|
||||
private double irq;
|
||||
private double softIrq;
|
||||
private double steal;
|
||||
private double stolen;
|
||||
private double combined;
|
||||
|
||||
CpuPerc() {}
|
||||
@@ -85,8 +85,8 @@ public class CpuPerc implements java.io.Serializable {
|
||||
return this.softIrq;
|
||||
}
|
||||
|
||||
public double getSteal() {
|
||||
return this.steal;
|
||||
public double getStolen() {
|
||||
return this.stolen;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -52,7 +52,7 @@ public class CpuInfo extends SigarCommandBase {
|
||||
println("Irq Time......" + CpuPerc.format(cpu.getIrq()));
|
||||
if (SigarLoader.IS_LINUX) {
|
||||
println("SoftIrq Time.." + CpuPerc.format(cpu.getSoftIrq()));
|
||||
println("Steal Time...." + CpuPerc.format(cpu.getSteal()));
|
||||
println("Stolen Time...." + CpuPerc.format(cpu.getStolen()));
|
||||
}
|
||||
println("");
|
||||
}
|
||||
|
||||
@@ -49,8 +49,8 @@ public class TestCpu extends SigarTestCase {
|
||||
traceln("SIrq.." + cpu.getSoftIrq());
|
||||
assertTrue(cpu.getSoftIrq() >= 0);
|
||||
|
||||
traceln("Stl..." + cpu.getSteal());
|
||||
assertTrue(cpu.getSteal() >= 0);
|
||||
traceln("Stl..." + cpu.getStolen());
|
||||
assertTrue(cpu.getStolen() >= 0);
|
||||
|
||||
traceln("Total.." + cpu.getTotal());
|
||||
assertTrue(cpu.getTotal() > 0);
|
||||
|
||||
Reference in new issue
Block a user