Updated to fix minor issues wiht minimunin and print 0's for empty (#6)

* Updated to fix minor issues wiht minimunin and print 0's for empty states

* Updated for minimunin

* Update tcpstates
This commit is contained in:
Mark Saad
2019-02-19 15:16:27 -05:00
committed by Babak Farrokhi
parent 683848e008
commit 55942167de
2 changed files with 50 additions and 20 deletions

17
netirq_
View File

@ -52,14 +52,6 @@ if [ $# -lt 1 ]; then
exit 1
fi
${AWK} '
{ FS = "[ ]{2,}" }
/'${STAT_TYPE}'/ {
split($1,name,":");
print name[1]".value "$2
}' ${STATFILE}
elif [ "$1" == "suggest" ]; then
for iface in `ifconfig -lu ether`; do
echo ${iface}
@ -95,8 +87,17 @@ BEGIN {
print name[1]".draw LINE2";
}
'
else
${AWK} '
{ FS = "[ ]{2,}" }
/'${STAT_TYPE}'/ {
split($1,name,":");
print name[1]".value "$2
}' ${STATFILE}
fi
rm ${STATFILE}