Update Stats32
This commit is contained in:
parent
5bc777adfa
commit
ec28e70c7a
5
Stats32
5
Stats32
|
@ -10,7 +10,7 @@
|
|||
# by Erreur32
|
||||
#
|
||||
|
||||
## 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"
|
||||
|
|
Loading…
Reference in New Issue