mirror of https://gitee.com/openkylin/libvirt.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.
This commit is contained in:
parent
449316701b
commit
2f4a45a25e
|
@ -287,7 +287,7 @@ static const vshCmdOptDef opts_dommemstat[] = {
|
||||||
.help = N_("domain name, id or uuid")
|
.help = N_("domain name, id or uuid")
|
||||||
},
|
},
|
||||||
{.name = "period",
|
{.name = "period",
|
||||||
.type = VSH_OT_STRING,
|
.type = VSH_OT_INT,
|
||||||
.flags = VSH_OFLAG_REQ_OPT,
|
.flags = VSH_OFLAG_REQ_OPT,
|
||||||
.help = N_("period in seconds to set collection")
|
.help = N_("period in seconds to set collection")
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue