- Timestamp:
- May 4, 2023 2:19:43 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/ApplianceImplImport.cpp
r99606 r99608 1800 1800 } 1801 1801 1802 uint64_t memory;1803 pGuestOSType->COMGETTER(RecommendedRAM)(&memory );//returned in MB1804 memory *=_1M;//convert to bytes1802 ULONG memoryInMB; 1803 pGuestOSType->COMGETTER(RecommendedRAM)(&memoryInMB);//returned in MB 1804 uint64_t memoryInBytes = memoryInMB * _1M;//convert to bytes 1805 1805 { 1806 1806 /* It's alway stored in bytes in VSD according to the old internal agreement within the team */ … … 1809 1809 { 1810 1810 vsdData = aVBoxValues[0]; 1811 memory = RT_MIN((uint64_t)(RT_MAX(vsdData.toUInt64(), (uint64_t)MM_RAM_MIN)), MM_RAM_MAX);1811 memoryInBytes = RT_MIN((uint64_t)(RT_MAX(vsdData.toUInt64(), (uint64_t)MM_RAM_MIN)), MM_RAM_MAX); 1812 1812 } 1813 1813 //and set in ovf::VirtualSystem in bytes 1814 vsys.ullMemorySize = memory ;1814 vsys.ullMemorySize = memoryInBytes; 1815 1815 LogRel(("%s: Size of RAM is %d MB\n", __FUNCTION__, vsys.ullMemorySize / _1M)); 1816 1816 }
Note:
See TracChangeset
for help on using the changeset viewer.

