From: Andrea Bolognani Date: Fri, 15 May 2015 16:14:40 +0000 (+0200) Subject: virsh: Fix dommemstat --period option type. X-Git-Tag: v1.2.16-rc1~58 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2f4a45a25e27945c09f9b4428223e51e3ea2beea;p=thirdparty%2Flibvirt.git virsh: Fix dommemstat --period option type. The option didn't have VSH_OT_INT type even thought it's expected to be numeric, as shown by the fact that vshCommandOptInt() is later used to retrieve its value. --- diff --git a/tools/virsh-domain-monitor.c b/tools/virsh-domain-monitor.c index 51276d325f..a42c15072f 100644 --- a/tools/virsh-domain-monitor.c +++ b/tools/virsh-domain-monitor.c @@ -287,7 +287,7 @@ static const vshCmdOptDef opts_dommemstat[] = { .help = N_("domain name, id or uuid") }, {.name = "period", - .type = VSH_OT_STRING, + .type = VSH_OT_INT, .flags = VSH_OFLAG_REQ_OPT, .help = N_("period in seconds to set collection") },