Created
June 22, 2012 14:06
-
-
Save atomicstack/2972905 to your computer and use it in GitHub Desktop.
hobo throughput info
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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