Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash -eu
- DATA=node-count.data
- while git checkout HEAD~30
- do
- date=$( git log -1 --date=unix | grep ^Date | awk '{ print $2 }' )
- echo -n "$date " >> $DATA
- ## $8 is the 30d uptime; 5..100 shows nodes with uptime >= 5%
- awk '{print $8}' seeds.txt | numgrep 5..100 | wc -l >> $DATA
- ## Show progress
- git log -1 | grep ^Date
- done
Add Comment
Please, Sign In to add comment