first commit
This commit is contained in:
parent
fb72f5d64e
commit
3a841391ba
1 changed files with 2 additions and 2 deletions
4
Stats32
4
Stats32
|
@ -34,9 +34,9 @@ swap_usage=`free -m | awk '/Swap/ { printf("%3.1f%%", "exit !$2;$3/$2*100") }'`
|
||||||
users=`users | wc -w`
|
users=`users | wc -w`
|
||||||
time=`uptime | grep -ohe 'up .*' | sed 's/,/\ hours/g' | awk '{ printf $2" "$3 }'`
|
time=`uptime | grep -ohe 'up .*' | sed 's/,/\ hours/g' | awk '{ printf $2" "$3 }'`
|
||||||
processes=`ps aux | wc -l`
|
processes=`ps aux | wc -l`
|
||||||
ip=`hostname -i`
|
#ip=`hostname -i`
|
||||||
# if IP fail try this
|
# if IP fail try this
|
||||||
# ip=`hostname -i | awk '{ printf $2 }'`
|
ip=`hostname -i | awk '{ printf $1 }'`
|
||||||
printf "Kernel Info [ $DISTRIB_DESCRIPTION ]\n"
|
printf "Kernel Info [ $DISTRIB_DESCRIPTION ]\n"
|
||||||
printf "%s------------\t------\t------------\t--------------\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
|
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
|
||||||
|
|
Loading…
Reference in a new issue