[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [or-cvs] r16423: We put bw info directory into the consensus, also versions a (tor/trunk/doc/spec/proposals)
On Mon, 11 Aug 2008, Peter Palfrader wrote:
> On Tue, 05 Aug 2008, Peter Palfrader wrote:
>
> > > > + "w Bandwidth=193671"
>
> -rw-r--r-- 1 weasel weasel 152368 Aug 11 22:27 bwcons.gz
> -rw-r--r-- 1 weasel weasel 149638 Aug 11 22:27 bwcons2.gz
> -rw-r--r-- 1 weasel weasel 144137 Aug 11 22:21 consensus.gz
And just so that my zsh_history isn't the only place that has this code:
wget -O - -q http://tor.noreply.org:80/tor/status-vote/current/consensus | while read line; do
echo $line
if echo $line | grep '^r ' > /dev/null; then
i=`echo $line | awk '$1=="r" {print $4}'`
sd=`echo $i | 64216`
wget -q -O t http://tor.noreply.org:80/tor/server/d/$sd
b=`awk '$1=="bandwidth" { if ($4 < $2) print int($4/1024); else print int($2/1024); }' t`
echo b $b
fi
done | tee bwcons2
weasel@anguilla:~$ which 64216
64216: aliased to perl -MMIME::Base64 -e "print unpack(\"H*\", decode_base64(<>)),\"\n\""
--
| .''`. ** Debian GNU/Linux **
Peter Palfrader | : :' : The universal
http://www.palfrader.org/ | `. `' Operating System
| `- http://www.debian.org/