Hi there ... swap_activity" is identical to v20120322, so it's still broken. Is there anything I can do to see my awk replacement in the next stable release?
Current code:
vmstat 1 2 2>/dev/null | tail -n1 | awk '{print $7*$8}' ||
vm_stat 1 | head -n 3 | tail -n1 | awk '{print $9*$10}'
Working code:
{ vmstat 1 2> /dev/null || vm_stat 1; } | awk '
NR!=4{next}
NF==16{print $7*$8}
NF==11{print $10*$11}
{exit}
'
Thomas
