turn off paging

This commit is contained in:
Doug MacEachern 2005-02-25 01:30:57 +00:00
parent 4c34af094a
commit 827d731120
1 changed files with 8 additions and 1 deletions

View File

@ -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....." +