Skip to content

Instantly share code, notes, and snippets.

@foxutech
Created April 3, 2018 02:57
Show Gist options
  • Save foxutech/a31651a8dd63968972ee26a1fe5aa304 to your computer and use it in GitHub Desktop.
Save foxutech/a31651a8dd63968972ee26a1fe5aa304 to your computer and use it in GitHub Desktop.
# print result
echo ""
#echo "Upload speed: $up_speed kB/s"
#echo "Download speed: $down_speed kB/s"
up_mbps=$(echo "scale=0; $up_speed/125" |bc)
down_mbps=$(echo "scale=0; $down_speed/125" |bc)
echo ""
echo "Upload speed: $up_mbps mbps"
echo "Download speed: $down_mbps mbps"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment