use super.println so redirection works
This commit is contained in:
parent
1de970d911
commit
a2c655476c
|
@ -23,19 +23,19 @@ public class CpuInfo extends SigarCommandBase {
|
||||||
|
|
||||||
CpuPerc[] cpus = this.sigar.getCpuPercList();
|
CpuPerc[] cpus = this.sigar.getCpuPercList();
|
||||||
|
|
||||||
this.out.println(infos.length + " total CPUs..");
|
println(infos.length + " total CPUs..");
|
||||||
|
|
||||||
for (int i=0; i<infos.length; i++) {
|
for (int i=0; i<infos.length; i++) {
|
||||||
net.hyperic.sigar.CpuInfo info = infos[i];
|
net.hyperic.sigar.CpuInfo info = infos[i];
|
||||||
CpuPerc cpu = cpus[i];
|
CpuPerc cpu = cpus[i];
|
||||||
this.out.println("Vendor........" + info.getVendor());
|
println("Vendor........" + info.getVendor());
|
||||||
this.out.println("Model........." + info.getModel());
|
println("Model........." + info.getModel());
|
||||||
this.out.println("Mhz..........." + info.getMhz());
|
println("Mhz..........." + info.getMhz());
|
||||||
this.out.println("Cache size...." + info.getCacheSize());
|
println("Cache size...." + info.getCacheSize());
|
||||||
this.out.println("User Time....." + CpuPerc.format(cpu.getUser()));
|
println("User Time....." + CpuPerc.format(cpu.getUser()));
|
||||||
this.out.println("Sys Time......" + CpuPerc.format(cpu.getSys()));
|
println("Sys Time......" + CpuPerc.format(cpu.getSys()));
|
||||||
this.out.println("Idle Time....." + CpuPerc.format(cpu.getIdle()));
|
println("Idle Time....." + CpuPerc.format(cpu.getIdle()));
|
||||||
this.out.println();
|
println("");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue