[kvmstats] Typo

"I don't sing my mother tongue"
This commit is contained in:
Alexis Ben Miloud--Josselin 2019-09-03 11:08:37 +02:00
parent 3efd024075
commit 1cc11d39ee
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ do
virsh vcpucount --current "$VM" virsh vcpucount --current "$VM"
# mem # mem
# libvirt store memory in KiB, POW must be lowered by 1 # libvirt stores memory in KiB, POW must be lowered by 1
virsh dommemstat "$VM" 2>&- | awk 'BEGIN{ret=1}$1~/^actual$/{print $2 / '$((POW / 1024))';ret=0}END{exit ret}' || virsh dommemstat "$VM" 2>&- | awk 'BEGIN{ret=1}$1~/^actual$/{print $2 / '$((POW / 1024))';ret=0}END{exit ret}' ||
virsh dumpxml "$VM" | awk -F'[<>]' '$2~/^memory unit/{print $3/'$((POW / 1024))'}' virsh dumpxml "$VM" | awk -F'[<>]' '$2~/^memory unit/{print $3/'$((POW / 1024))'}'