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

matthew_swift
01.05.2007 bfbbaa4e458735b6410c686a806c512f6fac7e2a
opends/src/server/org/opends/server/admin/SizePropertyDefinition.java
@@ -312,9 +312,10 @@
        return UNLIMITED;
      }
    }
    // Encode the size value using the best-fit unit.
    StringBuilder builder = new StringBuilder();
    SizeUnit unit = SizeUnit.BYTES.getBestFitUnit(value);
    SizeUnit unit = SizeUnit.getBestFitUnitExact(value);
    // Cast to a long to remove fractional part (which should not be there
    // anyway as the best-fit unit should result in an exact conversion).