turn off paging
This commit is contained in:
parent
4c34af094a
commit
827d731120
|
@ -32,8 +32,15 @@ public class Time extends SigarCommandBase {
|
|||
long user = cpu.getUser();
|
||||
long sys = cpu.getSys();
|
||||
long start = System.currentTimeMillis();
|
||||
boolean isInteractive = this.shell.isInteractive();
|
||||
//turn off paging.
|
||||
this.shell.setInteractive(false);
|
||||
|
||||
try {
|
||||
this.shell.handleCommand("time " + args[0], args);
|
||||
} finally {
|
||||
this.shell.setInteractive(isInteractive);
|
||||
}
|
||||
|
||||
cpu.gather(this.sigar, 0);
|
||||
println("real....." +
|
||||
|
|
Loading…
Reference in New Issue