fix IP issue in stats32

This commit is contained in:
Erreur32 2017-08-16 18:52:04 +02:00
parent f97791cfd4
commit b2d34e39ce
1 changed files with 2 additions and 0 deletions

View File

@ -38,6 +38,8 @@ users=`users | wc -w`
time=`uptime | grep -ohe 'up .*' | sed 's/,/\ hours/g' | awk '{ printf $2" "$3 }'`
processes=`ps aux | wc -l`
ip=`hostname -i`
# if IP fail try this
# ip=`hostname -i | awk '{ printf $2 }'`
printf "%s-----------\t---\t------------\t----------\n"
printf "System load :\t%s\tIP Address:\t%s\n" $load $ip