use printf
This commit is contained in:
parent
bccdccdee0
commit
32b8a5d334
@ -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
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user