Skip to content

Instantly share code, notes, and snippets.

@atomicstack
Created June 22, 2012 14:06
Show Gist options
  • Save atomicstack/2972905 to your computer and use it in GitHub Desktop.
Save atomicstack/2972905 to your computer and use it in GitHub Desktop.
hobo throughput info
prev=$(du -bs . | awk '{print $1}'); sleep 1;
while true; do
now=$(du -bs . | awk '{print $1}');
diff=$(echo -e "scale=3\n($now - $prev) / 1024 / 1024" | bc);
echo "diff: $diff";
prev=$now;
sleep 1;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment