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 14:31:13 UTC

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

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


##########
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:
   Thanks, @weizhouapache. I will create a PR to fix this typo.



-- 
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