print current user

This commit is contained in:
Doug MacEachern 2005-09-13 03:42:17 +00:00
parent bce3df9cc6
commit f11c79da7e

View File

@ -53,6 +53,8 @@ public class Version extends SigarCommandBase {
if (!fqdn.equals(host)) { if (!fqdn.equals(host)) {
os.println("Hostname............" + host); os.println("Hostname............" + host);
} }
os.println("Current user........" +
System.getProperty("user.name"));
os.println(""); os.println("");
OperatingSystem sys = OperatingSystem.getInstance(); OperatingSystem sys = OperatingSystem.getInstance();