Changeset 36702 in vbox for trunk/src/VBox/Frontends/VBoxBalloonCtrl
- Timestamp:
- Apr 18, 2011 9:49:11 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxBalloonCtrl/VBoxBalloonCtrl.cpp
r36696 r36702 73 73 74 74 static uint32_t g_cHistory = 10; /* Enable log rotation, 10 files. */ 75 static uint32_t g_uHistoryFileTime = RT_SEC_1 WEEK; /* Max 1 weekper file. */75 static uint32_t g_uHistoryFileTime = RT_SEC_1DAY; /* Max 1 day per file. */ 76 76 static uint64_t g_uHistoryFileSize = 100 * _1M; /* Max 100MB per file. */ 77 77 … … 112 112 /** Global max. balloon limit. */ 113 113 { "--balloon-max", GETOPTDEF_BALLOONCTRL_BALLOONMAX, RTGETOPT_REQ_INT32 }, 114 { "--verbose", 'v', RTGETOPT_REQ_NOTHING } 114 { "--verbose", 'v', RTGETOPT_REQ_NOTHING }, 115 { "--pidfile", 'P', RTGETOPT_REQ_STRING }, 116 { "--logfile", 'F', RTGETOPT_REQ_STRING }, 117 { "--logrotate", 'R', RTGETOPT_REQ_UINT32 }, 118 { "--logsize", 'S', RTGETOPT_REQ_UINT64 }, 119 { "--loginterval", 'I', RTGETOPT_REQ_UINT32 } 115 120 }; 116 121 … … 1006 1011 pcszDescr = "Sets the balloon maximum limit in MB (0 MB)."; 1007 1012 break; 1013 1014 case 'P': 1015 pcszDescr = "Name of the PID file which is created when the daemon was started."; 1016 break; 1017 1018 case 'F': 1019 pcszDescr = "Name of file to write log to (no file)."; 1020 break; 1021 1022 case 'R': 1023 pcszDescr = "Number of log files (0 disables log rotation)."; 1024 break; 1025 1026 case 'S': 1027 pcszDescr = "Maximum size of a log file to trigger rotation (bytes)."; 1028 break; 1029 1030 case 'I': 1031 pcszDescr = "Maximum time interval to trigger log rotation (seconds)."; 1032 break; 1008 1033 } 1009 1034 … … 1079 1104 break; 1080 1105 1106 case 'P': 1107 pszPidFile = ValueUnion.psz; 1108 break; 1109 1110 case 'F': 1111 pszLogFile = ValueUnion.psz; 1112 break; 1113 1114 case 'R': 1115 g_cHistory = ValueUnion.u32; 1116 break; 1117 1118 case 'S': 1119 g_uHistoryFileSize = ValueUnion.u64; 1120 break; 1121 1122 case 'I': 1123 g_uHistoryFileTime = ValueUnion.u32; 1124 break; 1125 1081 1126 default: 1082 1127 rc = RTGetOptPrintError(c, &ValueUnion);
Note:
See TracChangeset
for help on using the changeset viewer.