mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
Don't print extra newline in virsh domstats output
Signed-off-by: Nitesh Konkar <nitkon12@linux.vnet.ibm.com>
This commit is contained in:
parent
9b1bd138f1
commit
78d2bb7486
@ -2047,7 +2047,6 @@ virshDomainStatsPrintRecord(vshControl *ctl ATTRIBUTE_UNUSED,
|
|||||||
VIR_FREE(param);
|
VIR_FREE(param);
|
||||||
}
|
}
|
||||||
|
|
||||||
vshPrint(ctl, "\n");
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2145,9 +2144,13 @@ cmdDomstats(vshControl *ctl, const vshCmd *cmd)
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (next = records; *next; next++) {
|
next = records;
|
||||||
|
while (*next) {
|
||||||
if (!virshDomainStatsPrintRecord(ctl, *next, raw))
|
if (!virshDomainStatsPrintRecord(ctl, *next, raw))
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
|
if (*(++next))
|
||||||
|
vshPrint(ctl, "\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = true;
|
ret = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user