Revert "ARTEMIS-2801 Fix ByteUtil.getHumanReadableByteCount() giving inconsistent results"

I merged this one by accident

This reverts commit ffb117d159.
This commit is contained in:
Clebert Suconic 2020-07-08 18:08:23 -04:00
parent c1be566c20
commit fbeb9a492c
1 changed files with 1 additions and 3 deletions

View File

@ -21,7 +21,6 @@ import java.io.StringWriter;
import java.nio.ByteBuffer;
import java.nio.ReadOnlyBufferException;
import java.util.Arrays;
import java.util.Locale;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
@ -450,7 +449,6 @@ public class ByteUtil {
i++;
}
// Set locale to language/country neutral to avoid different behavior for non-US users
return String.format(Locale.ROOT, "%.1f%sB", bytes / BYTE_MAGNITUDES[i], BYTE_SUFFIXES[i]);
return String.format("%.1f%sB", bytes / BYTE_MAGNITUDES[i], BYTE_SUFFIXES[i]);
}
}