Zend certified PHP/Magento developer

How to parse upload and download speed with ifstat and printf?

In bash I’m trying to display rounded (no decimals) download and upload speed in readable format i.e something like that:

Download 16KB Upload 200KB

I got this but its not quite working:

ifstat 1 1 | tail -n 1 | awk ' {printf "Down=%.0fn", $1 } printf {"KB"} {printf " Up=%.0f", $2}' {printf "KB"}