VirtualBox

Changeset 64103 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Sep 29, 2016 6:37:58 PM (8 years ago)
Author:
vboxsync
Message:

CFGM: when dumping some size, rounding to full GB is too coarse-grained

File:
1 edited

Legend:

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

    r62478 r64103  
    32453245                {
    32463246                    if (pLeaf->Value.Integer.u64 > _2G)
    3247                         pHlp->pfnPrintf(pHlp, ", %'lld GB", pLeaf->Value.Integer.u64 / _1G);
     3247                        pHlp->pfnPrintf(pHlp, ", %'lld.%lld GB",
     3248                                              pLeaf->Value.Integer.u64 / _1G,
     3249                                              (pLeaf->Value.Integer.u64 % _1G) / (_1G / 10));
    32483250                    else if (pLeaf->Value.Integer.u64 > _2M)
    32493251                        pHlp->pfnPrintf(pHlp, ", %'lld MB", pLeaf->Value.Integer.u64 / _1M);
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