use printf

This commit is contained in:
Doug MacEachern 2005-07-24 18:11:09 +00:00
parent bccdccdee0
commit 32b8a5d334

View File

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