Update Stats32

This commit is contained in:
Erreur32 2017-07-31 22:36:49 +02:00
parent 5bc777adfa
commit ec28e70c7a
1 changed files with 2 additions and 3 deletions

View File

@ -10,7 +10,7 @@
# by
#
## need figlet (auto installiong with the ./install.sh)
## need figlet (auto installing with the ./install.sh)
# figlet -f wideterm
figlet -f chunky $(hostname)
@ -39,8 +39,7 @@ swap_usage=`free -m | awk '/Swap/ { printf("%3.1f%%", "exit !$2;$3/$2*100") }'`
users=`users | wc -w`
time=`uptime | grep -ohe 'up .*' | sed 's/,/\ hours/g' | awk '{ printf $2" "$3 }'`
processes=`ps aux | wc -l`
#ip=`ifconfig $(route | grep default | awk '{ print $8 }') | awk /'inet adr/ {print $2}' | awk -F: '{print $2}'`
ip=`hostname --ip-address`
ip=`hostname --ip-address | awk '{ print $2 }'`
printf "%s-----------\t---\t------------\t----------\n"
printf "System load :\t%s\tIP Address:\t%s\n" $load $ip
printf "Memory usage:\t%s\tSystem uptime:\t%s\n" $memory_usage "$time"