Created
June 18, 2015 02:32
-
-
Save jaxzin/e3db1395cac24a35df46 to your computer and use it in GitHub Desktop.
Watching a long running git svn fetch...
This file contains hidden or 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
# Watch the .git dir and log any file size changes | |
delay=1; prev=`du -sk .git/ | cut -f 1`; sleep $delay; while true; do cur=`du -sk .git/ | cut -f 1`; expr \( $cur - $prev \) / $delay ; prev=$cur; sleep $delay; done > rate.log & | |
# Chart the .git dir's file size changes (estimate of activity) | |
watch -n 1 'gnuplot -e "set terminal dumb;p \"<tail -25 rate.log\" with lines notitle"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment