Changeset 40712 in vbox for trunk/src/VBox/Main/src-client
- Timestamp:
- Mar 29, 2012 3:33:43 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
r40633 r40712 96 96 # include <VBox/vmm/pdmusb.h> 97 97 #endif 98 #ifdef VBOX_WITH_NETSHAPER 99 # include <VBox/vmm/pdmnetshaper.h> 100 #endif /* VBOX_WITH_NETSHAPER */ 98 101 #include <VBox/vmm/mm.h> 99 102 #include <VBox/vmm/ftm.h> … … 5152 5155 ULONG cMax; 5153 5156 Bstr strName; 5157 BandwidthGroupType_T enmType; 5154 5158 rc = aBandwidthGroup->COMGETTER(Name)(strName.asOutParam()); 5155 5159 if (SUCCEEDED(rc)) 5156 5160 rc = aBandwidthGroup->COMGETTER(MaxMbPerSec)(&cMax); 5161 if (SUCCEEDED(rc)) 5162 rc = aBandwidthGroup->COMGETTER(Type)(&enmType); 5157 5163 5158 5164 if (SUCCEEDED(rc)) 5159 5165 { 5160 int vrc; 5161 vrc = PDMR3AsyncCompletionBwMgrSetMaxForFile(ptrVM, Utf8Str(strName).c_str(), 5162 cMax * _1M); 5166 int vrc = VINF_SUCCESS; 5167 if (enmType == BandwidthGroupType_Disk) 5168 vrc = PDMR3AsyncCompletionBwMgrSetMaxForFile(ptrVM, Utf8Str(strName).c_str(), 5169 cMax * _1M); 5170 else if (enmType == BandwidthGroupType_Network) 5171 vrc = PDMR3NsBwGroupSetLimit(ptrVM, Utf8Str(strName).c_str(), 5172 cMax * 1000); 5173 else 5174 rc = E_NOTIMPL; 5163 5175 AssertRC(vrc); 5164 5176 }
Note:
See TracChangeset
for help on using the changeset viewer.