diff --git a/Stats32 b/Stats32 index 5989254..048cb92 100755 --- a/Stats32 +++ b/Stats32 @@ -34,9 +34,9 @@ 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=`hostname -i` +#ip=`hostname -i` # if IP fail try this -# ip=`hostname -i | awk '{ printf $2 }'` +ip=`hostname -i | awk '{ printf $1 }'` printf "Kernel Info [ $DISTRIB_DESCRIPTION ]\n" printf "%s------------\t------\t------------\t--------------\n" printf "System load \e[42;30;1m\t%s\e[0;0m\tIP Address \e[0;1m\e[38;5;166m\t%s\e[0;0m\n" " $load " $ip