Changeset 25165 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- Dec 3, 2009 1:11:29 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageImport.cpp
r25142 r25165 47 47 48 48 #include <VBox/log.h> 49 #include <VBox/param.h> 49 50 50 51 #include "VBoxManage.h" … … 465 466 { 466 467 uint32_t cCPUs; 467 if ( (VINF_SUCCESS == strOverride.toInt(cCPUs))468 && (cCPUs > 0)469 && (cCPUs < 33)468 if ( strOverride.toInt(cCPUs) == VINF_SUCCESS 469 && cCPUs >= VMM_MIN_CPU_COUNT 470 && cCPUs <= VMM_MAX_CPU_COUNT 470 471 ) 471 472 { … … 476 477 else 477 478 return errorSyntax(USAGE_IMPORTAPPLIANCE, 478 "Argument to --cpus option must be a number greater than 0 and less than 33."); 479 "Argument to --cpus option must be a number greater than %d and less than %d.", 480 VMM_MIN_CPU_COUNT - 1, VMM_MAX_CPU_COUNT + 1); 479 481 } 480 482 else
Note:
See TracChangeset
for help on using the changeset viewer.