James Moger
2011-10-27 8e40cd53b6b1579e383bd5e993cb3c35ce4583c4
src/com/gitblit/models/ServerStatus.java
@@ -20,6 +20,8 @@
import java.util.Map;
import java.util.TreeMap;
import com.gitblit.Constants;
/**
 * ServerStatus encapsulates runtime status information about the server
 * including some information about the system environment.
@@ -32,6 +34,10 @@
   private static final long serialVersionUID = 1L;
   public final Date bootDate;
   public final String version;
   public final String releaseDate;
   
   public final boolean isGO;
   
@@ -46,12 +52,14 @@
   public String servletContainer;
   public ServerStatus(boolean isGO) {
      bootDate = new Date();
      this.bootDate = new Date();
      this.version = Constants.VERSION;
      this.releaseDate = Constants.VERSION_DATE;
      this.isGO = isGO;
      
      heapMaximum = Runtime.getRuntime().maxMemory();
      this.heapMaximum = Runtime.getRuntime().maxMemory();
      
      systemProperties = new TreeMap<String, String>();
      this.systemProperties = new TreeMap<String, String>();
      put("file.encoding");
      put("java.home");
      put("java.io.tmpdir");