Changeset 26294 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- Feb 5, 2010 2:35:26 PM (15 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageControlVM.cpp
r26293 r26294 792 792 CHECK_ERROR(guest, COMSETTER(MemoryBalloonSize)(uVal)); 793 793 } 794 else if ( !strcmp(a->argv[1], "--gueststatisticsinterval") 795 || !strcmp(a->argv[1], "-gueststatisticsinterval")) 796 { 797 if (a->argc != 3) 798 { 799 errorSyntax(USAGE_CONTROLVM, "Incorrect number of parameters"); 800 rc = E_FAIL; 801 break; 802 } 803 uint32_t uVal; 804 int vrc; 805 vrc = RTStrToUInt32Ex(a->argv[2], NULL, 0, &uVal); 806 if (vrc != VINF_SUCCESS) 807 { 808 errorArgument("Error parsing guest statistics interval '%s'", a->argv[2]); 809 rc = E_FAIL; 810 break; 811 } 812 813 /* guest is running; update IGuest */ 814 ComPtr <IGuest> guest; 815 816 rc = console->COMGETTER(Guest)(guest.asOutParam()); 817 if (SUCCEEDED(rc)) 818 CHECK_ERROR(guest, COMSETTER(StatisticsUpdateInterval)(uVal)); 819 } 794 820 else if (!strcmp(a->argv[1], "teleport")) 795 821 { -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
r26293 r26294 215 215 " <devicename>]\n" 216 216 " [--guestmemoryballoon <balloonsize in MB>]\n" 217 " [--gueststatisticsinterval <seconds>]\n" 217 218 ); 218 219 RTPrintf(" [--audio none|null"); -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp
r26293 r26294 1724 1724 RTPrintf("Configured memory balloon size: %d MB\n", guestVal); 1725 1725 } 1726 rc = machine->COMGETTER(StatisticsUpdateInterval)(&guestVal); 1727 if (SUCCEEDED(rc)) 1728 { 1729 if (details == VMINFO_MACHINEREADABLE) 1730 RTPrintf("GuestStatisticsUpdateInterval=%d\n", guestVal); 1731 else 1732 { 1733 if (guestVal == 0) 1734 RTPrintf("Statistics update: disabled\n"); 1735 else 1736 RTPrintf("Statistics update interval: %d seconds\n", guestVal); 1737 } 1738 } 1739 if (details != VMINFO_MACHINEREADABLE) 1740 RTPrintf("\n"); 1726 1741 1727 1742 if ( console -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
r26293 r26294 115 115 MODIFYVM_UARTMODE, 116 116 MODIFYVM_UART, 117 MODIFYVM_GUESTSTATISTICSINTERVAL, 117 118 MODIFYVM_GUESTMEMORYBALLOON, 118 119 MODIFYVM_AUDIOCONTROLLER, … … 197 198 { "--uartmode", MODIFYVM_UARTMODE, RTGETOPT_REQ_STRING | RTGETOPT_FLAG_INDEX }, 198 199 { "--uart", MODIFYVM_UART, RTGETOPT_REQ_STRING | RTGETOPT_FLAG_INDEX }, 200 { "--gueststatisticsinterval", MODIFYVM_GUESTSTATISTICSINTERVAL, RTGETOPT_REQ_UINT32 }, 199 201 { "--guestmemoryballoon", MODIFYVM_GUESTMEMORYBALLOON, RTGETOPT_REQ_UINT32 }, 200 202 { "--audiocontroller", MODIFYVM_AUDIOCONTROLLER, RTGETOPT_REQ_STRING }, … … 1283 1285 } 1284 1286 1287 case MODIFYVM_GUESTSTATISTICSINTERVAL: 1288 { 1289 CHECK_ERROR(machine, COMSETTER(StatisticsUpdateInterval)(ValueUnion.u32)); 1290 break; 1291 } 1292 1285 1293 case MODIFYVM_GUESTMEMORYBALLOON: 1286 1294 {
Note:
See TracChangeset
for help on using the changeset viewer.