summaryrefslogtreecommitdiff
path: root/others/vm3/compute/ls.sh
diff options
context:
space:
mode:
authorhc <hc@email.ch>2025-01-02 09:26:32 +0800
committerhc <hc@email.ch>2025-01-02 09:26:32 +0800
commitc33f0979f0312e7a6d43645aa0a5d5b1481751f5 (patch)
tree49bd07cf9b6f02572586d22f3794da007bf794d1 /others/vm3/compute/ls.sh
parent181bc10748cd9162e85f16722d6c83ff04a2d39d (diff)
udpated
Diffstat (limited to 'others/vm3/compute/ls.sh')
-rwxr-xr-xothers/vm3/compute/ls.sh2
1 files changed, 1 insertions, 1 deletions
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 "<vcpu" | awk -F'[<>]' '{print $3}' > /tmp/vcpus.$$ &
echo "$xml" | grep "<memory" | awk -F'[<>]' '{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