You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2022/11/08 13:13:51 UTC

[GitHub] [cloudstack] weizhouapache commented on a diff in pull request #5909: Quota custom tariffs

weizhouapache commented on code in PR #5909:
URL: https://github.com/apache/cloudstack/pull/5909#discussion_r1016617329


##########
utils/src/main/java/org/apache/cloudstack/utils/bytescale/ByteScaleUtils.java:
##########
@@ -44,4 +45,14 @@ public static long mibToBytes(long mib) {
     public static long bytesToKib(long b) {
         return b / KiB;
     }
+
+    /**
+     * Converts bytes to mebibytes.
+     *
+     * @param b The value in bytes to convert to mebibytes.
+     * @return The parameter divided by 1024 * 1024 (1 MiB).
+     */
+    public static long bytesToMib(long b) {

Review Comment:
   @GutoVeronezi 
   b stands for bits
   B stands for bytes
   
   The method name should use KiB/MiB



-- 
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: commits-unsubscribe@cloudstack.apache.org

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