VirtualBox

Ignore:
Timestamp:
May 4, 2023 1:53:06 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
157124
Message:

bugref:10314. bugref:10278. Reverted VSD RAM unit to bytes and fixed other places where MB unit was used.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageAppliance.cpp

    r99523 r99604  
    757757                                    RTPrintf(Appliance::tr("%2u: Guest memory specified with --memory: %RU32 MB\n"),
    758758                                             a, ulMemMB);
     759
     760                                   /* IVirtualSystemDescription guest memory size is in bytes.
     761                                      It's alway stored in bytes in VSD according to the old internal agreement within the team */
     762                                    uint64_t ullMemBytes = (uint64_t)ulMemMB * _1M;
     763                                    strOverride = Utf8StrFmt("%RU64", ullMemBytes);
    759764                                    bstrFinalValue = strOverride;
    760765                                }
     
    765770                            {
    766771                                strOverride = aVBoxValues[a];
    767                                 uint64_t ullMemMB = strOverride.toUInt64();
     772                                uint64_t ullMemMB = strOverride.toUInt64() / _1M;
    768773                                RTPrintf(Appliance::tr("%2u: Guest memory: %RU64 MB\n    (change with \"--vsys %u --memory <MB>\")\n"),
    769774                                         a, ullMemMB, i);
Note: See TracChangeset for help on using the changeset viewer.

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