From c33f0979f0312e7a6d43645aa0a5d5b1481751f5 Mon Sep 17 00:00:00 2001 From: hc Date: Thu, 2 Jan 2025 09:26:32 +0800 Subject: udpated --- others/vm3/compute/ls.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'others/vm3/compute/ls.sh') diff --git a/others/vm3/compute/ls.sh b/others/vm3/compute/ls.sh index b62ef14..b821fd1 100755 --- a/others/vm3/compute/ls.sh +++ b/others/vm3/compute/ls.sh @@ -27,7 +27,7 @@ for vm in $vms; do sudo virsh domstate "$vm" 2>/dev/null > /tmp/state.$$ & echo "$xml" | grep "]' '{print $3}' > /tmp/vcpus.$$ & echo "$xml" | grep "]' '{print $3}' | awk '{ printf "%.2f", $1/1048576 }' > /tmp/ram.$$ & - sudo du -sk "/var/lib/libvirt/images/${vm}/${vm}.qcow2" 2>/dev/null | awk '{ printf "%.2f", $1/1024/1024 }' > /tmp/disk.$$ & + sudo du -sk "/var/lib/libvirt/images/${vm}.qcow2" 2>/dev/null | awk '{ printf "%.2f", $1/1024/1024 }' > /tmp/disk.$$ & wait -- cgit v1.2.3-70-g09d2