Skip to content

Instantly share code, notes, and snippets.

@jaxzin
Created June 18, 2015 02:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaxzin/e3db1395cac24a35df46 to your computer and use it in GitHub Desktop.
Save jaxzin/e3db1395cac24a35df46 to your computer and use it in GitHub Desktop.
Watching a long running git svn fetch...
# 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