mirror of
https://github.com/Fishwaldo/build.git
synced 2025-03-28 17:51:40 +00:00
Typo
This commit is contained in:
parent
552bb6414b
commit
da3a05a68a
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ fi
|
|||
memory_total=$(LANG=en_US.UTF-8 free -m | awk '/Mem/ {print $(2)}')
|
||||
users=$(users | wc -w)
|
||||
swap_usage=$(LANG=en_US.UTF-8 free -m | ( awk '/Swap/ { printf("%3.0f", $3/$2*100) }' 2>/dev/null || echo 0 ) | sed 's/ //g')
|
||||
swap_usage=${wap_usage//[!0-9]/} # to remove alfanumeric if swap not used
|
||||
swap_usage=${swap_usage//[!0-9]/} # to remove alfanumeric if swap not used
|
||||
swap_total=$(LANG=en_US.UTF-8 free -m | awk '/Swap/ {print $(2)}')
|
||||
ip_address=$(hostname -I | tr " " "\n" | grep -E "^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$" | tail -n2 | tr "\n" " ")
|
||||
ip_address=$(echo $ip_address | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//' | sed 's/ /,/g')
|
||||
|
|
Loading…
Add table
Reference in a new issue