Skip to content

Instantly share code, notes, and snippets.

@entombedvirus
Created October 20, 2009 22:09
Show Gist options
  • Save entombedvirus/214662 to your computer and use it in GitHub Desktop.
Save entombedvirus/214662 to your computer and use it in GitHub Desktop.
while true; do total_before=$(wc -l /var/log/haproxy.log | cut -f1 -d' '); sleep 5; total_after=$(wc -l /var/log/haproxy.log | cut -f1 -d' '); echo $(((total_after-total_before)/5)) lps; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment