Change virsh dommemstats command to dommemstat

As Paul Jenner pointed out all other statistics commands use the
singular form

* tools/virsh.c: rename dommemstats to dommemstat as well as function
  name and associated structures
This commit is contained in:
Daniel Veillard 2009-12-21 13:49:45 +01:00
parent 469b6b3a75
commit a858474f49

View File

@ -887,19 +887,19 @@ cmdDomIfstat (vshControl *ctl, const vshCmd *cmd)
/*
* "dommemstats" command
*/
static const vshCmdInfo info_dommemstats[] = {
static const vshCmdInfo info_dommemstat[] = {
{"help", gettext_noop("get memory statistics for a domain")},
{"desc", gettext_noop("Get memory statistics for a runnng domain.")},
{NULL,NULL}
};
static const vshCmdOptDef opts_dommemstats[] = {
static const vshCmdOptDef opts_dommemstat[] = {
{"domain", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("domain name, id or uuid")},
{NULL, 0, 0, NULL}
};
static int
cmdDomMemStats(vshControl *ctl, const vshCmd *cmd)
cmdDomMemStat(vshControl *ctl, const vshCmd *cmd)
{
virDomainPtr dom;
char *name;
@ -7340,7 +7340,7 @@ static const vshCmdDef commands[] = {
{"domstate", cmdDomstate, opts_domstate, info_domstate},
{"domblkstat", cmdDomblkstat, opts_domblkstat, info_domblkstat},
{"domifstat", cmdDomIfstat, opts_domifstat, info_domifstat},
{"dommemstats", cmdDomMemStats, opts_dommemstats, info_dommemstats},
{"dommemstat", cmdDomMemStat, opts_dommemstat, info_dommemstat},
{"domxml-from-native", cmdDomXMLFromNative, opts_domxmlfromnative, info_domxmlfromnative},
{"domxml-to-native", cmdDomXMLToNative, opts_domxmltonative, info_domxmltonative},
{"dumpxml", cmdDumpXML, opts_dumpxml, info_dumpxml},