Fix line print

On the last awk command, line containing "yes"
were printed two times.
Cette révision appartient à :
Alexis Ben Miloud--Josselin 2018-12-27 10:34:18 +01:00
Parent e12c362f7b
révision 20cecaa77a
1 fichiers modifiés avec 1 ajouts et 1 suppressions

Voir le fichier

@ -57,7 +57,7 @@ do
echo "$VM" "$CPU" "$RAM" "$DSK" "$RUN"
done | (
echo vm vcpu ram disk running
awk '{ print } /yes$/ { print; vcpu += $2; ram += $3; disk += $4; running++ } END { print "TOTAL(running)", vcpu, ram, disk, running }'
awk '{ print } /yes$/ { vcpu += $2; ram += $3; disk += $4; running++ } END { print "TOTAL(running)", vcpu, ram, disk, running }'
if [ "$SHOW_AVAIL" ]
then
AV_CPU=$(awk '/^processor/ { cpu++ } END { print cpu }' /proc/cpuinfo)