anchor.diff:    if (slaveinfo.canRead()) {
       // Slave instance
       mode = "Slave";
  -    File slavevers = new File(rootdir + "/logs/snapshot.current");
  +    File slavevers = new File(cwd + "/logs/snapshot.current");
       BufferedReader inforeader = new BufferedReader(new FileReader(slaveinfo));
       BufferedReader versreader = new BufferedReader(new FileReader(slavevers));
       buffer.append("<tr>\n" +
  
positive.code:                  java.net.InetAddress,
                   java.net.UnknownHostException,
                   java.util.Date"%>
  <%
    SolrCore core = SolrCore.getSolrCore();
    Integer port = new Integer(request.getServerPort());
    IndexSchema schema = core.getSchema();
    String collectionName = schema!=null ? schema.getName():"unknown";
  
    String rootdir = "/var/opt/resin3/"+port.toString();
    File pidFile = new File(rootdir + "/logs/resin.pid");
    String startTime = "";
  
    try {
      startTime = (pidFile.lastModified() > 0)
                ? new Date(pidFile.lastModified()).toString()
                      : "No Resin Pid found (logs/resin.pid)";
    } catch (Exception e) {
      out.println("<ERROR>");
      out.println("Couldn't open Solr pid file:" + e.toString());
      out.println("</ERROR>");
    }
  
    String hostname="localhost";
    try {
      InetAddress addr = InetAddress.getLocalHost();
      // Get IP Address
      byte[] ipAddr = addr.getAddress();
      // Get hostname
      // hostname = addr.getHostName();
      hostname = addr.getCanonicalHostName();
    } catch (UnknownHostException e) {}
  
    File slaveinfo = new File(rootdir + "/logs/snappuller.status");
  
    StringBuffer buffer = new StringBuffer();
    String mode = "";
  
negative.code:     }
    }
  %>
  
  
  </body>
  </html>
  