From 5133a159d17630c54a5d17dab6a23d6cf7295099 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Lecour?= Date: Tue, 3 Sep 2019 10:58:05 +0200 Subject: [PATCH] Better vCPU count The `virsh vcpucount` can output the maximum or current values, but only one of the flags should be used at the same time. --- kvmstats/kvmstats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100755 => 100644 kvmstats/kvmstats diff --git a/kvmstats/kvmstats b/kvmstats/kvmstats old mode 100755 new mode 100644 index 08ad011..7b7a465 --- a/kvmstats/kvmstats +++ b/kvmstats/kvmstats @@ -67,7 +67,7 @@ do echo "$VM" # cpu - virsh vcpucount --maximum --current "$VM" + virsh vcpucount --current "$VM" # mem # libvirt store memory in KiB, POW must be lowered by 1