Browse Source

[kvmstats] Typo

"I don't sing my mother tongue"
master
Alexis Ben Miloud--Josselin 1 month ago
parent
commit
1cc11d39ee
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      kvmstats/kvmstats

+ 1
- 1
kvmstats/kvmstats View File

@@ -70,7 +70,7 @@ do
virsh vcpucount --current "$VM"

# 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 dumpxml "$VM" | awk -F'[<>]' '$2~/^memory unit/{print $3/'$((POW / 1024))'}'


Loading…
Cancel
Save