mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
07.44.2014 9748e704763be89c57cad0a65fe74dce65fbcf84
opendj3-server-dev/src/guitools/org/opends/guitools/controlpanel/datamodel/ServerDescriptor.java
@@ -527,7 +527,7 @@
    {
      return false;
    }
    String os = (String) getFirstMonitoringValue(sr, "operatingSystem");
    String os = getFirstValueAsString(sr, "operatingSystem");
    if (os != null)
    {
      return OperatingSystem.WINDOWS == OperatingSystem.forName(os);
@@ -729,8 +729,8 @@
    {
      try
      {
        String start = (String) getFirstMonitoringValue(rootMonitor, START_DATE.getAttributeName());
        String current = (String) getFirstMonitoringValue(rootMonitor, CURRENT_DATE.getAttributeName());
        String start = getFirstValueAsString(rootMonitor, START_DATE.getAttributeName());
        String current = getFirstValueAsString(rootMonitor, CURRENT_DATE.getAttributeName());
        Date startTime = ConfigFromDirContext.utcParser.parse(start);
        Date currentTime = ConfigFromDirContext.utcParser.parse(current);
        return currentTime.getTime() - startTime.getTime();