mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
This patch adds the argument check of "--ms_per_sample=" option. For
"--ms_per_sample=", a negative value should be invalid. e.g. % xenmon.py -n --ms_per_sample=-1 usage: xenmon.py [options] xenmon.py: error: option --ms_per_sample: invalid negative value: '-1' Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
This commit is contained in:
1 parent
8037b37752
commit
bd5b7756c3
1 file changed
+3
@@ -672,6 +672,9 @@ def main():
|
||||
|
||||
parser = setup_cmdline_parser()
|
||||
(options, args) = parser.parse_args()
|
||||
if options.mspersample < 0:
|
||||
parser.error("option --ms_per_sample: invalid negative value: '%d'" %
|
||||
options.mspersample)
|
||||
|
||||
start_xenbaked()
|
||||
if options.live:
|
||||
|
||||