VirtualBox

Changeset 94477 in vbox


Ignore:
Timestamp:
Apr 5, 2022 6:11:16 PM (2 years ago)
Author:
vboxsync
Message:

VMM/CFGM: When dumping sizes in human readable units, avoid divisor rounding error showing 4294967295 incorrectly as 3.10GB instead of 3.9GB.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/CFGM.cpp

    r94369 r94477  
    33703370                        pHlp->pfnPrintf(pHlp, ", %'lld.%lld GB",
    33713371                                              pLeaf->Value.Integer.u64 / _1G,
    3372                                               (pLeaf->Value.Integer.u64 % _1G) / (_1G / 10));
     3372                                              (pLeaf->Value.Integer.u64 % _1G) / _1K * 10 / _1M);
    33733373                }
    33743374                pHlp->pfnPrintf(pHlp, ")\n");
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette