use printf

This commit is contained in:
Doug MacEachern 2005-07-24 18:11:09 +00:00
parent bccdccdee0
commit 32b8a5d334
1 changed files with 6 additions and 4 deletions

View File

@ -34,10 +34,12 @@ public class Who extends SigarCommandBase {
if (host.length() != 0) {
host = "(" + host + ")";
}
println(who[i].getUser() + "\t" +
who[i].getDevice() + "\t" +
getTime(who[i].getTime() * 1000) + "\t" +
host);
printf(new String[] {
who[i].getUser(),
who[i].getDevice(),
getTime(who[i].getTime() * 1000),
host
});
}
}