add cpu.irq for windows
This commit is contained in:
1 parent
f03b59703e
commit
c0bd0b1830
4 files changed
+16
-7
No files matched your search
@@ -445,7 +445,7 @@ use vars qw(%classes %cmds);
|
||||
{
|
||||
name => 'irq', type => 'Long',
|
||||
desc => 'Total system cpu time servicing interrupts',
|
||||
plat => 'FLH'
|
||||
plat => 'FLHW'
|
||||
},
|
||||
{
|
||||
name => 'soft_irq', type => 'Long',
|
||||
@@ -492,7 +492,7 @@ use vars qw(%classes %cmds);
|
||||
{
|
||||
name => 'irq', type => 'Double',
|
||||
desc => 'Percent system cpu time servicing interrupts',
|
||||
plat => 'FLH'
|
||||
plat => 'FLHW'
|
||||
},
|
||||
{
|
||||
name => 'soft_irq', type => 'Double',
|
||||
|
||||
@@ -49,8 +49,8 @@ public class CpuInfo extends SigarCommandBase {
|
||||
println("Wait Time....." + CpuPerc.format(cpu.getWait()));
|
||||
println("Nice Time....." + CpuPerc.format(cpu.getNice()));
|
||||
println("Combined......" + CpuPerc.format(cpu.getCombined()));
|
||||
println("Irq Time......" + CpuPerc.format(cpu.getIrq()));
|
||||
if (SigarLoader.IS_LINUX) {
|
||||
println("Irq Time......" + CpuPerc.format(cpu.getIrq()));
|
||||
println("SoftIrq Time.." + CpuPerc.format(cpu.getSoftIrq()));
|
||||
println("Steal Time...." + CpuPerc.format(cpu.getSteal()));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user