You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@activemq.apache.org by GitBox <gi...@apache.org> on 2020/06/11 15:04:10 UTC

[GitHub] [activemq-artemis] ehsavoie commented on a change in pull request #3177: ARTEMIS-2801 Fix ByteUtil.getHumanReadableByteCount() giving inconsistent results

ehsavoie commented on a change in pull request #3177:
URL: https://github.com/apache/activemq-artemis/pull/3177#discussion_r438853388



##########
File path: artemis-commons/src/main/java/org/apache/activemq/artemis/utils/ByteUtil.java
##########
@@ -449,6 +450,7 @@ public static String getHumanReadableByteCount(long bytes) {
          i++;
       }
 
-      return String.format("%.1f%sB", bytes / BYTE_MAGNITUDES[i], BYTE_SUFFIXES[i]);
+      // Set locale to language/country neutral to avoid different behavior for non-US users

Review comment:
       yes




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org