]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
virsh: Fix dommemstat --period option type.
authorAndrea Bolognani <abologna@redhat.com>
Fri, 15 May 2015 16:14:40 +0000 (18:14 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 18 May 2015 08:50:06 +0000 (10:50 +0200)
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.

tools/virsh-domain-monitor.c

index 51276d325ffcb0ddf9d9998d260fdab16f6dcc2c..a42c15072f20a49f88d685a57e6887f378cddd39 100644 (file)
@@ -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")
     },