aboutsummaryrefslogtreecommitdiff
path: root/kvm-status
diff options
context:
space:
mode:
Diffstat (limited to 'kvm-status')
-rwxr-xr-xkvm-status8
1 files changed, 4 insertions, 4 deletions
diff --git a/kvm-status b/kvm-status
index 9a2c6fc..a715e8c 100755
--- a/kvm-status
+++ b/kvm-status
@@ -18,10 +18,10 @@ function convert_ram {
echo "SERVER RAM"
total_ram=0
for foo in $(ls $dir); do
- ram=$(cat $dir/$foo/env/RAM)
- convert_ram "$ram"
- echo "$foo $display_ram"
- total_ram=$(( $total_ram + $display_ram ))
+ ram=$(cat $dir/$foo/env/RAM)
+ convert_ram "$ram"
+ echo "$foo $display_ram"
+ total_ram=$(( $total_ram + $display_ram ))
done
echo "TOTAL $total_ram"
} | column -t