Changeset 21345 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jul 7, 2009 3:35:35 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 49694
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGuestRAMSlider.cpp
r21324 r21345 101 101 102 102 /* System RAM amount test */ 103 mMaxRAMAlw = 0.75 * fullSize;104 mMaxRAMOpt = 0.50 * fullSize;103 mMaxRAMAlw = (uint)0.75 * fullSize; 104 mMaxRAMOpt = (uint)0.50 * fullSize; 105 105 if (fullSize < 3072) 106 106 /* done */; 107 107 else if (fullSize < 4096) /* 3GB */ 108 mMaxRAMAlw = 0.80 * fullSize;108 mMaxRAMAlw = (uint)0.80 * fullSize; 109 109 else if (fullSize < 6144) /* 4-5GB */ 110 110 { 111 mMaxRAMAlw = 0.84 * fullSize;112 mMaxRAMOpt = 0.60 * fullSize;111 mMaxRAMAlw = (uint)0.84 * fullSize; 112 mMaxRAMOpt = (uint)0.60 * fullSize; 113 113 } 114 114 else if (fullSize < 8192) /* 6-7GB */ 115 115 { 116 mMaxRAMAlw = 0.88 * fullSize;117 mMaxRAMOpt = 0.65 * fullSize;116 mMaxRAMAlw = (uint)0.88 * fullSize; 117 mMaxRAMOpt = (uint)0.65 * fullSize; 118 118 } 119 119 else if (fullSize < 16384) /* 8-15GB */ 120 120 { 121 mMaxRAMAlw = 0.90 * fullSize;122 mMaxRAMOpt = 0.70 * fullSize;121 mMaxRAMAlw = (uint)0.90 * fullSize; 122 mMaxRAMOpt = (uint)0.70 * fullSize; 123 123 } 124 124 else if (fullSize < 32768) /* 16-31GB */ 125 125 { 126 mMaxRAMAlw = 0.93 * fullSize;127 mMaxRAMOpt = 0.75 * fullSize;126 mMaxRAMAlw = (uint)0.93 * fullSize; 127 mMaxRAMOpt = (uint)0.75 * fullSize; 128 128 } 129 129 else if (fullSize < 65536) /* 32-63GB */ 130 130 { 131 mMaxRAMAlw = 0.94 * fullSize;132 mMaxRAMOpt = 0.80 * fullSize;131 mMaxRAMAlw = (uint)0.94 * fullSize; 132 mMaxRAMOpt = (uint)0.80 * fullSize; 133 133 } 134 134 else if (fullSize < 131072) /* 64-127GB */ 135 135 { 136 mMaxRAMAlw = 0.95 * fullSize;137 mMaxRAMOpt = 0.85 * fullSize;136 mMaxRAMAlw = (uint)0.95 * fullSize; 137 mMaxRAMOpt = (uint)0.85 * fullSize; 138 138 } 139 139 else /* 128GB- */ 140 140 { 141 mMaxRAMAlw = 0.96 * fullSize;142 mMaxRAMOpt = 0.90 * fullSize;141 mMaxRAMAlw = (uint)0.96 * fullSize; 142 mMaxRAMOpt = (uint)0.90 * fullSize; 143 143 } 144 144
Note:
See TracChangeset
for help on using the changeset viewer.