zaaath commented on code in PR #2977:
URL: https://github.com/apache/cassandra/pull/2977#discussion_r1427500606
##########
src/java/org/apache/cassandra/utils/FBUtilities.java:
##########
@@ -921,6 +911,16 @@ public static String prettyPrintAverage(double average)
return String.format("%.2f", average);
}
+ /**
+ * Convert the given size in bytes to a human-readable value using binary
(i.e. 2^10-based) modifiers.
+ * For example, 1.000KiB, 2.100GiB etc., up to 8.000 EiB.
+ * @param size Number to convert.
+ */
+ public static String prettyPrintMemory(long size)
Review Comment:
This method has been moved closer to `prettyPrintMemory(long size, String
separator)`
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]